MySQL Installation:
-
- at command-line input
sudo apt- get install Mysql- server
- A window will pop up during installation, enter the password for the database
root user ( must enter password )
- after installation through
mysql - uroot - p and enter the password you entered earlier to enter the MySQL Data Environment   
To configure the encoding for MySQL:
-
- MySQL database encoding is latin1
- View database encoding: Show variables like '%char%'
- Ubuntu_server MYSQL Modified encoded file:/ETC/MYSQL/CONF.D/MYSQL.CNF
- Use the Vim editor to edit this file (mysql.cnf): (Paste the following code directly)
[client] default - character - Set = UTF8 [mysqld] character - Set - = utf8collation - = Utf8_general_ci
- Restart server (must restart): service MySQL Restart
To create a MySQL user:
- To create a user:
Create User ' username '@ '%' by'password';
- Empowerment:
Grant All on *. * to ' username '@'%';
- Refresh: flush privileges;
Graphical operation of MySQL:
h eidisql is a free graphical software that operates on MySQL. : Https://www.heidisql.com/download.php?download=installer
- Remote connection
MySQL or using a graphical tool connection you must modify MySQL The port inside the configuration file
- Files that are located
Ubuntu-server MySQL under the Modify port /etc/mysql/mysql.conf.d mysqld.cnf
- Find
bind-address this line, then 127.0.0.1 change it and 0.0.0.0 save it and exit.
- Then restart the service
- Create a
MySQL normal user that can connect using a normal user. Remember to refresh
You can connect to the database remotely by completing the above necessary actions.
MySQL Installation and configuration