查看nohup文件内容如下:
[iyunv@goolen lepus]# cat nohup.out
Traceback (most recent call last):
File "lepus.py", line 8, in
import MySQLdb
File "/usr/lib64/python2.6/site-packages/MySQL_python-1.2.4-py2.6-linux-x86_64.egg/MySQLdb/__init__.py", line 19, in
import _mysql
ImportError: libmysqlclient.so.18: cannot open shared object file: No such file or directory
Traceback (most recent call last):
File "lepus.py", line 8, in
import MySQLdb
File "/usr/lib64/python2.6/site-packages/MySQL_python-1.2.4-py2.6-linux-x86_64.egg/MySQLdb/__init__.py", line 19, in
import _mysql
ImportError: libmysqlclient.so.18: cannot open shared object file: No such file or directory
[iyunv@goolen lepus]# sed -n '19p' /usr/lib64/python2.6/site-packages/MySQL_python-1.2.4-py2.6-linux-x86_64.egg/MySQLdb/__init__.py
import _mysql
[iyunv@goolen lepus]#
[iyunv@goolen lepus]# python
Python 2.6.6 (r266:84292, May 1 2012, 13:52:17)
[GCC 4.4.6 20110731 (Red Hat 4.4.6-3)] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> import _mysql
Traceback (most recent call last):
File "", line 1, in
ImportError: libmysqlclient.so.18: cannot open shared object file: No such file or directory
>>>
[iyunv@goolen ~]# lepus start
nohup: 把输出追加到"nohup.out"
lepus server start fail!
查看nohup文件:
super(Connection, self).__init__(*args, **kwargs2)
_mysql_exceptions.OperationalError: (1045, "Access denied for user 'lepus'@'127.0.0.1' (using password: YES)")
[iyunv@goolen lepus]# mysql -ulepus -plepus
Welcome to the MySQL monitor. Commands end with ; or \g.
Your MySQL connection> Server version: 5.5.18-log Source distribution
Copyright (c) 2000, 2011, Oracle and/or its affiliates. All rights reserved.
Oracle is a registered trademark of Oracle Corporation and/or its
affiliates. Other names may be trademarks of their respective
owners.
Type 'help;' or '\h' for help. Type '\c' to clear the current input statement.
mysql> exit
Bye
[iyunv@goolen lepus]# mysql -ulepus -plepus -h127.0.0.1
ERROR 1045 (28000): Access denied for user 'lepus'@'127.0.0.1' (using password: YES)
[iyunv@goolen lepus]#
[iyunv@goolen lepus]# mysql -ulepus -plepus -hlocalhost
Welcome to the MySQL monitor. Commands end with ; or \g.
Your MySQL connection> Server version: 5.5.18-log Source distribution
Copyright (c) 2000, 2011, Oracle and/or its affiliates. All rights reserved.
Oracle is a registered trademark of Oracle Corporation and/or its
affiliates. Other names may be trademarks of their respective
owners.
Type 'help;' or '\h' for help. Type '\c' to clear the current input statement.
mysql> exit
Bye
解决:编辑配置文件:
[iyunv@goolen lepus]# vim etc/config.ini