D:\MySQL Server 5.1\bin>mysql -uroot -p Enter password: ****** Welcome to the MySQL monitor. Commands end with ; or \g. Your MySQL connection id is 12 Server version: 5.1.40-community-log MySQL Community Server (GPL)Type 'help;' or '\h' for help. Type '\c' to clear the current input statement.mysql>
我是第一次运行,没有密码。按照你的方法,总是提示 access denied for user 'ODBC'@localhost' <using password : YES>
你根本就没设置用户名!你还是先用MYSQL自带的命令行工具先学习吧。
要是你只想进去mysql,而又提示: Access denied for user ''@'localhost' (using password:YES)错误:1045 SQLSTATE: 28000 (ER_ACCESS_DENIED_ERROR) 消息:拒绝用户'%s'@'%s'的访问(使用密码:%s)方法: 在mysql的配置文件my.ini 的mysqld的选项组里面添加:skip-grant-tables 选项, 只要mysql -uroot 就进去了;
用户名root
密码123
- u root password "123"
这个要怎么做啊?
添加到属性了面?
password 后面是 关于如何更改密码的~~!
[收集]mysql 无法联接故障现象及原因
1. PING hostname 或 PING 189.xx.xx.xx 确认服务器IP层通信没有问题。如果PING通则继续(2),PING不通则找网络方面专家协助。
2. TELNET hostname 3306 确认服务器TCP层通信没有问题。(你的端口号可能不是3306),如通则继续,如不通,请检查mysqld 是否已经在运行,防火墙屏蔽了端口。
3. 检查用户权限, show grants ...
Enter password: ******
Welcome to the MySQL monitor. Commands end with ; or \g.
Your MySQL connection id is 12
Server version: 5.1.40-community-log MySQL Community Server (GPL)Type 'help;' or '\h' for help. Type '\c' to clear the current input statement.mysql>
Access denied for user ''@'localhost' (using password:YES)错误:1045 SQLSTATE: 28000 (ER_ACCESS_DENIED_ERROR)
消息:拒绝用户'%s'@'%s'的访问(使用密码:%s)方法: 在mysql的配置文件my.ini 的mysqld的选项组里面添加:skip-grant-tables 选项,
只要mysql -uroot 就进去了;