你是不是在DOS窗口没有登陆到数据库?你可以试试下面的方法:连接到本机上的MYSQL。 首先在打开DOS窗口,然后进入目录 mysqlbin,再键入命令mysql -uroot -p,回车后提示你输密码,如果刚安装好MYSQL,超级用户root是没有密码的,故直接回车即可进入到MYSQL中了,MYSQL的提示符是:mysql>然后再输入 create database aa;
调试欢乐多
Your MySQL connection id is 48 to server version: 5.0.0-alpha-ntType 'help;' or '\h' for help. Type '\c' to clear the buffer.mysql> mysql -u root -p
-> ;
ERROR 1064 (42000): You have an error in your SQL syntax. Check the manual that
corresponds to your MySQL server version for the right syntax to use near 'mysq
l -u root -p' at line 1
mysql>
首先在打开DOS窗口,然后进入目录 mysqlbin,再键入命令mysql -uroot -p!!
(C) 版权所有 1985-2000 Microsoft Corp.C:\>d:D:\>cd mysqlD:\mysql>cd mysqlbin
系统找不到指定的路径。D:\mysql>cd binD:\mysql\bin>mysql -uroot -p;
ERROR 1045 (28000): Access denied for user: 'root'@'localhost' (Using password:
YES)
用这个黑窗口象您说的那样也行不同,大哥这是怎么了?
看能不能登陆
或 mysql -h localhost -u root -proot加回车如出错.那说明你把密码设置犯错误了.
拿mysql3~4版本的password函数获取一个密码字符传,直接update到mysql5的user表就能正常使用密码
mysql -uroot
else
mysql -uroot -pcreate database aa;
ERROR 1044 (42000): Access denied for user: ''@'localhost' to database 'aa'
___________________________________________________________________________根本没有登录啊,怎么有权限建立数据库,先登录,然后建立数据库
你的安装目录>bin>mysqld --install
没提示什么错误
但打开mysql cc没看到建立的表哦