IT

mysql 쉘 쿼리 실행

노트에버 2020. 5. 20. 14:51

#암호 설정되어 있찌 않다.

mysql -uroot > root.sql

 

#root.sql

use mysql;

update user set password=password('dhormfo') where user='root'; 

grant all privileges on *.* to root@'%' identified by 'dhormfo';

flush privileges;