mysql command

2. Execute the sql file

mysql -uroot -p < tv_staging_2018-01-03.sql

2. Create a database

mysqladmin -u root -p create tv_v2

3.linux enters mysql and uses a database

1.mysql -uroot -p

2.use database name;

4. ERROR 1130: Host '192.168.1.3' is not allowed to connect to this MySQL server This is telling you that you do not have permission to connect to the host with the specified IP. Let's take a look at the solution:

GRANT ALL PRIVILEGES ON *.* TO 'root'@'%' IDENTIFIED BY 'passw0rd' WITH GRANT OPTION;




Guess you like

Origin http://43.154.161.224:23101/article/api/json?id=325646264&siteId=291194637