aix操作mysql

aix 重启mysql时遇到问题:

error: 'Access denied for user 'root'@'localhost' (using password: YES)'
这个错误是关闭mysql时使用下面的命令产生的:

./mysqladmin -u root -p shutdown

原因是输入的密码错误;

然后是启动mysql,由于使用root账号,启动mysql要使用./mysqld_safe 命令,不然会出现下面的错误:

Fatal error: Please read "Security" section of the manual to find out how to run mysqld as root!

使用命令如下:

./mysqld_safe --user=root

但是还是出现了下面的错误:

there is not enough spase ...

aix机就是这样,老是显示空间不够,如何查看空间呢?

df -k

查看到的结果却是是使用100%,增加空间;

chfs -a size=+5G /usr

给/usr增加5G的空间,然后使用

./mysqld_safe --user=root

出现mysqld deaman 。。。,说明正在启动,然后使用

ps -ef |grep mysql

查看是否有mysql进程运行,即可。

不过启动后的数据库下面使用show tables 可以看到表,但是 select * from table_name却说没有表,不知道是什么原因。

 

 

 

你可能感兴趣的:(mysql,AIX)