mysql 错误:ERROR 1045 (28000): Access deni
[root@vm1 ~]# rpm -ivh groundwork-foundation-pro-1.6.1-67.noarch.rpm
Preparing... ########################################### [100%]
Current Java version:
java version "1.5.0_06"
Java(TM) 2 Runtime Environment, Standard Edition (build 1.5.0_06-b05)
Java HotSpot(TM) Client VM (build 1.5.0_06-b05, mixed mode)
1:groundwork-foundation-p########################################### [100%]
Creating GWCollage database...
MySQL root passwd is set...
Ok...
ERROR 1045 (28000): Access denied for user 'root'@'localhost' (using password: YES)
Loading Foundation Schema...
ERROR 1045 (28000): Access denied for user 'root'@'localhost' (using password: YES)
ERROR 1045 (28000): Access denied for user 'root'@'localhost' (using password: YES)
ERROR 1045 (28000): Access denied for user 'root'@'localhost' (using password: YES)
ERROR 1045 (28000): Access denied for user 'root'@'localhost' (using password: YES)
ERROR 1045 (28000): Access denied for user 'root'@'localhost' (using password: YES)
ERROR 1045 (28000): Access denied for user 'root'@'localhost' (using password: YES)
ERROR 1045 (28000): Access denied for user 'root'@'localhost' (using password: YES)
解决方法:
为mysql设置环境变量
export MYSQL_ROOT=password ,此处password即为你上面设置的密码。