I tried mysql
in my command line :
I get:
The program 'mysql' is currently not installed. You can install it by typing:
sudo apt-get install mysql-client-core-5.5
But when I do:
sudo apt-get install mysql-client-core-5.5
But I get:
Reading package lists... Done
Building dependency tree
Reading state information... Done
mysql-client-core-5.5 is already the newest version.
0 upgraded, 0 newly installed, 0 to remove and 47 not upgraded.
How should I proceed?
First, remove the current version of MySQL you're already using:
Now, to install MySQL, run the following command from a terminal prompt:
During the installation process you will be prompted to enter a password for the MySQL root user.
Once the installation is complete, the MySQL server should be started automatically. You can run the following command from a terminal prompt to check whether the MySQL server is running:
When you run this command, you should see the following line or something similar:
If the server is not running correctly, you can type the following command to start it:
You can edit the
/etc/mysql/my.cnf
file to configure the basic settings: log file, port number, etc.This command installs the MySQL server, which you need.
If you want to run commands from the workbench and not from a terminal, you need the client as well (this is optional):
For MySQL Workbench (also optional):
First you have to remove mysql completely from your system using following commands in terminal
Now try to reinstall Mysql.
That suggestion seems a little bizzare because it would miss out other dependencies and utilities. I would just run this and be done with it: