1, sudo apt-get install mysql -server mysql-client
with sudo netstat -tap | grep mysql view the service is turned on, display:
tcp 0 0 localhost.localdomain: MySQL *: * LISTEN -
|
If the service is not running, you can use
sudo /etc/init.d/mysql restart
open.
2, installation gui tool
sudo APT-GET install MySQL-Query-Browser
sudo APT-GET install MySQL-ADMIN
safe after the Run command in the / usr / bin directory
simply double-click to run on the line, if the idle trouble making their own a shell
MySQL .sh
content:
# / usr / bin / MySQL-ADMIN
/ usr / bin / MySQL-Query Browser-
given executable permissions
chmod u + x mysql.sh
put on the table after the shell on the convenience
3, mysql directory
Database directory: / var / lib / mysql / ( they can modify etc / mysql / my.cnf to change the data storage directory)
configuration file: / usr / share / mysql
related commands: / usr / bin (mysqladmin mysqlbrowser mysqldump commands)
4, c API configuration environment of
the front are hard to say, is this, hard to find two points to find.
sudo apt-get install libmysqlclient15-dev
After the installation, you will find mysql.h this header file in / usr / include / mysql / directory
and find some mysql dynamic or static library files in / usr / lib / mysql /
Reproduced in: https: //my.oschina.net/dake/blog/196697