<?xml version="1.0" encoding="UTF-8" ?>
<rss version="2.0">
<channel>
<title><![CDATA[向东博客 专注WEB应用 构架之美 --- 构架之美，在于尽态极妍 | 应用之美，在于药到病除]]></title> 
<link>http://www.jackxiang.com/index.php</link> 
<description><![CDATA[赢在IT，Playin' with IT,Focus on Killer Application,Marketing Meets Technology.]]></description> 
<language>zh-cn</language> 
<copyright><![CDATA[向东博客 专注WEB应用 构架之美 --- 构架之美，在于尽态极妍 | 应用之美，在于药到病除]]></copyright>
<item>
<link>http://www.jackxiang.com/post//</link>
<title><![CDATA[mysql create user mysql.plugin table.  Please run mysql_upgrade to create it]]></title> 
<author>jack &lt;xdy108@126.com&gt;</author>
<category><![CDATA[WEB2.0]]></category>
<pubDate>Sat, 01 Jan 2011 16:52:22 +0000</pubDate> 
<guid>http://www.jackxiang.com/post//</guid> 
<description>
<![CDATA[ 
	<div class="code"><br/>101007 22:30:31 &#91;ERROR&#93; Can&#039;t open the mysql.plugin table. Please run the mysql_upgrade script to create it.<br/>101007 22:30:31 &#91;ERROR&#93; Fatal error: Can&#039;t open and lock privilege tables: Table &#039;mysql.host&#039; doesn&#039;t exist<br/>101007 22:30:31&nbsp;&nbsp;mysqld ended<br/></div><br/> 再源码下面执行，如下：<br/>linux-Jack-nb4:~/webserver/mysql-5.1.12-beta # ./scripts/mysql_install_db --user=mysql --datadir=/usr/local/mysql/var<br/>Installing all prepared tables<br/>Fill help tables<br/><br/>To start mysqld at boot time you have to copy support-files/mysql.server<br/>to the right place for your system<br/><br/>PLEASE REMEMBER TO SET A PASSWORD FOR THE MySQL root USER !<br/>To do so, start the server, then issue the following commands:<br/>/usr/local/mysql/bin/mysqladmin -u root password &#039;new-password&#039;<br/>/usr/local/mysql/bin/mysqladmin -u root -h linux-Jack-nb4 password &#039;new-password&#039;<br/>See the manual for more instructions.<br/><br/>NOTE:&nbsp;&nbsp;If you are upgrading from a MySQL &lt;= 3.22.10 you should run<br/>the /usr/local/mysql/bin/mysql_fix_privilege_tables. Otherwise you will not be<br/>able to use the new GRANT command!<br/><br/>You can start the MySQL daemon with:<br/>cd /usr/local/mysql ; /usr/local/mysql/bin/mysqld_safe &amp;<br/><br/>Please report any problems with the /usr/local/mysql/bin/mysqlbug script!<br/><br/>The latest information about MySQL is available on the web at<br/>http://www.mysql.com<br/>Support MySQL by buying support/licenses at http://shop.mysql.com<br/><br/><br/><br/>Mysql运行Ok了：<br/><div class="code">linux-Jack-nb4:~/webserver/mysql-5.1.12-beta # ps aux&#124;grep mysql<br/>root&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;5515&nbsp;&nbsp;0.0&nbsp;&nbsp;0.1&nbsp;&nbsp; 2804&nbsp;&nbsp;1312 pts/0&nbsp;&nbsp;&nbsp;&nbsp;S&nbsp;&nbsp;&nbsp;&nbsp;22:40&nbsp;&nbsp; 0:00 /bin/sh /usr/local/mysql/bin/mysqld_safe<br/>mysql&nbsp;&nbsp;&nbsp;&nbsp; 5566&nbsp;&nbsp;0.3&nbsp;&nbsp;1.6&nbsp;&nbsp;81984 13132 pts/0&nbsp;&nbsp;&nbsp;&nbsp;Sl&nbsp;&nbsp; 22:40&nbsp;&nbsp; 0:01 /usr/local/mysql/libexec/mysqld --basedir=/usr/local/mysql --datadir=/usr/local/mysql/var --user=mysql --pid-file=/usr/local/mysql/var/linux-Jack-nb4.pid --log-error=/usr/local/mysql/var/linux-Jack-nb4.err --socket=/tmp/mysql.sock --port=3306<br/>前面指定了DB位置，后面就会对于那个--datadir=位置所在：<br/>/usr/local/mysql/libexec/mysqld --basedir=/usr/local/mysql --datadir=/data/mysql-/ --user=mysql --pid-file=/data/mysql-//linux-jack-xiang.pid --log-error=/data/mysql-//linux-jack-xiang.err --socket=/tmp/mysql.sock --port=3306<br/>root&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;5606&nbsp;&nbsp;0.0&nbsp;&nbsp;0.0&nbsp;&nbsp; 1900&nbsp;&nbsp; 652 pts/0&nbsp;&nbsp;&nbsp;&nbsp;S+&nbsp;&nbsp; 22:47&nbsp;&nbsp; 0:00 grep mysql</div><br/><br/><br/>在MYSQL启动老失败即：Starting MySQL.Manager of pid-file quit without updating file.[FAILED]<br/>查看错误日志显示：mysqld_safe Starting mysqld daemon with databases from /usr/local/mysql/data<br/>/usr/local/mysql/bin/mysqld: Table &#039;mysql.plugin&#039; doesn&#039;t exist<br/><br/>Can&#039;t open the mysql.plugin table. Please run mysql_upgrade to create it.<br/>InnoDB: The first specified data file ./ibdata1 did not exist:
]]>
</description>
</item><item>
<link>http://www.jackxiang.com/post//#blogcomment</link>
<title><![CDATA[[评论] mysql create user mysql.plugin table.  Please run mysql_upgrade to create it]]></title> 
<author> &lt;user@domain.com&gt;</author>
<category><![CDATA[评论]]></category>
<pubDate>Thu, 01 Jan 1970 00:00:00 +0000</pubDate> 
<guid>http://www.jackxiang.com/post//#blogcomment</guid> 
<description>
<![CDATA[ 
	
]]>
</description>
</item>
</channel>
</rss>