到底是怎么回事,请各位帮忙解决!谢谢……
解决方案 »
- mysql中这段程序怎么新建不了表,中文参考手册中也是这样写的喔?
- INNODB引擎启动不了,
- MySQL/Postgresql 有没有最新的对比情况?
- 日期计算到第二天,时间固定.
- mysql 5.0.17建数据库时出问题,请高手指教!
- MySQL 通过ADO连接VC++
- mysqlbinlog问题
- foreign key 问题
- 怎麼不能連接到 Linux 下的 Mysql( 只能用Localhost )
- 我是个新手,可否告知如何在mysql中导入数据?
- 有谁能告诉我这样select给一个变量赋值有什么问题?在Sql server 中,应该是正确的阿
- 插入新用户名和密码到USER表时报错,请帮忙解决
Fatal error: Can't open privilege tables: Table 'mysql.host' doesn't existThese messages occur when the MySQL server cannot find the mysql privileges database or other critical files. This error is often encountered when the MySQL base or data directories are installed in different locations than the default locations (C:\mysql and C:\Program Files\MySQL\MySQL Server 5.0\data, respectively). One situation when this may occur is when MySQL is upgraded and installed to a new location, but the configuration file is not updated to reflect the new install location. In addition there may be old and new configuration files that conflict, be sure to delete or rename any old configuration files when upgrading MySQL. If you have installed MySQL to a directory other than C:\Program Files\MySQL\MySQL Server 5.0 you need to ensure that the MySQL server is aware of this through the use of a configuration (my.ini) file. The my.ini file needs to be located in your Windows directory, typically C:\WINNT or C:\WINDOWS. You can determine its exact location from the value of the WINDIR environment variable by issuing the following command from the command prompt: C:\> echo %WINDIR%An option file can be created and modified with any text editor, such as Notepad. For example, if MySQL is installed in E:\mysql and the data directory is D:\MySQLdata, you can create the option file and set up a [mysqld] section to specify values for the basedir and datadir parameters: [mysqld]
# set basedir to your installation path
basedir=E:/mysql
# set datadir to the location of your data directory
datadir=D:/MySQLdataNote that Windows pathnames are specified in option files using (forward) slashes rather than backslashes. If you do use backslashes, you must double them: [mysqld]
# set basedir to your installation path
basedir=C:\\Program Files\\MySQL\\MySQL Server 5.0
# set datadir to the location of your data directory
datadir=D:\\MySQLdataIf you change the datadir value in your MySQL configuration file, you must move the contents of the existing MySQL data directory before restarting the MySQL server.
好象是数据库安装程序和数据目录安装在不同的地方导致的,建议你重新安装。。
解决方法可能是把mysql卸载干净然后重新装就好了
应该有更好的解决办法
这类问题网上有好几种说话,不知我说的情况合不合用呢?
重新卸干净重装下,或者重新配置一下吧