linuxnavicat
发布时间: 2023-09-12 00:09:36
Ⅰ 如何解决Linux系统中的Navicat for Mysql 1045错误
mysqladmin
-h
hostname
flush-privileges
use
mysql;
update
user
set
password
=password('yourpass')
where
user='root'
出现无法连接数据库的话,命令行用root用户登陆,敲下面命令:
SET
PASSWORD
FOR
sns@'localhost'=OLD_PASSWORD('sns');
然后刷新mysql权限
FLUSH
PRIVILEGES;
导入数据的方法
mysql
-u
name
-p
--default-character-set=utf8
databasename
<
path\*.sql
create
database
name
character
set
utf8;
如果出现#1251
-
Client
does
not
support
authentication
protocol
requested
by
server;的错误:
热点内容