[root@localhost mysql]# ./
bin/ data/ include/ lib/ libexec/ log/ mysql-test/ share/ sql-bench/
[root@localhost mysql]# ./bin/
comp_err mysqlbinlog mysql_find_rows mysqltestmanagerc
innochecksum mysqlbug mysql_fix_extensions mysqltestmanager-pwgen
msql2mysql mysqlcheck mysql_fix_privilege_tables mysql_tzinfo_to_sql
myisamchk mysql_client_test mysqlhotcopy mysql_upgrade
myisam_ftdump mysql_config mysqlimport mysql_upgrade_shell
myisamlog mysql_convert_table_format mysql_install_db mysql_waitpid
myisampack mysqld_multi mysql_secure_installation mysql_zap
my_print_defaults mysqld_safe mysql_setpermission perror
mysql mysqldump mysqlshow replace
mysqlaccess mysqldumpslow mysql_tableinfo resolveip
mysqladmin mysql_explain_log mysqltest resolve_stack_dump
[root@localhost mysql]# ./bin/mysqld_safe &
[1] 22367
[root@localhost mysql]# Starting mysqld daemon with databases from /data/mysql/data
[root@localhost mysql]# /data/mysql/bin/mysql -uroot -p123456
Welcome to the MySQL monitor. Commands end with ; or \g.
Your MySQL connection id is 15
Server version: 5.0.88-log Source distribution
No entry for terminal type "xterm";
using dumb terminal settings.
Type 'help;' or '\h' for help. Type '\c' to clear the current input statement.
mysql> Ctrl-C -- exit!
Aborted
[root@localhost mysql]# cd /tmp/
.ICE-unix/ mysql.sock
[root@localhost mysql]# cd /tmp/
终于进去了
终于备份好了,为了以后不必要的麻烦,添加service管理
[root@localhost data]# cp /data/mysql/share/mysql/mysql.server /etc/init.d/mysql
[root@localhost data]# cd /etc/init.d/
[root@localhost init.d]# chkconfig --add mysql
[root@localhost init.d]# chkconfig mysql on
这样方便多了
[root@localhost init.d]# service mysql stop
MySQL manager or server PID file could not be found! [FAILED]
[root@localhost init.d]# service mysql start
Starting MySQL. [ OK ]
[root@localhost init.d]# /data/mysql/bin/mysql -uroot -p
Welcome to the MySQL monitor. Commands end with ; or \g.
Your MySQL connection id is 21
Server version: 5.0.88-log Source distribution
No entry for terminal type "xterm";
using dumb terminal settings.
Type 'help;' or '\h' for help. Type '\c' to clear the current input statement.