Unable to install bind9 on ubuntu 12.04
4,385
Ok found the solution, I had to update my system, so i went to software sources and then I Checked all checkboxes in the 3 first tabs Ubuntu software,Other software,Updates after everything was checked I ran the following command:
sudo apt-get dist-upgrade
Then to install bind9
sudo apt-get install bind9
Related videos on Youtube
Author by
Max
Updated on September 18, 2022Comments
-
Max over 1 year
I have used this connection to my program several times, but this time when i run the program it keeps saying "no database selected".
I need the code to Count rows in MySqlDatabase table "aktiviteter" and add 1 to that number and insert it to my textbox "idAk_txt"
using System; using System.Collections.Generic; using System.ComponentModel; using System.Data; using System.Drawing; using System.Linq; using System.Text; using System.Threading.Tasks; using System.Windows.Forms; using MySql.Data.MySqlClient; public OpretAktivitet() { HentAntal(); } private void HentAntal() { string constring = "datasource=localhost;port=3306;username=root;password=*********"; string Query = "select count(*) as antal from aktiviteter"; MySqlConnection conDatabase = new MySqlConnection(constring); MySqlCommand cmdDatabase = new MySqlCommand(Query, conDatabase); MySqlDataReader myReader; try { conDatabase.Open(); myReader = cmdDatabase.ExecuteReader(); while (myReader.Read()) { int antal = Convert.ToInt32(myReader.GetString("antal").ToString()); ; antal += 1; idAk_txt.Text = Convert.ToString(antal); } } catch (Exception ex) { MessageBox.Show(ex.Message); } }
-
Tal over 11 yearsany one can help here?
-
-
Phizes almost 11 yearsIt is quite acceptable to mark your own answer as the solution to your problem. See here.
-
Sudhakar Tillapudi over 10 years@Max: you are welcome :) I'm glad to be help of you.