wangjianwei
2003-09-08, 18:11
[root@localhost lib]# cd /etc/rc.d/init.d
[root@localhost init.d]# dir ------我的init.d文件夹下没有mysqld
aep1000 cups irda named pcmcia saslauthd vsftpd
anacron firstboot isdn netfs portmap sendmail xfs
apmd functions kdcrotate network pxe single xinetd
atd gpm keytable nfs radvd squid ypbind
autofs halt killall nfslock random sshd yppasswdd
bcm5820 httpd kudzu nscd rawdevices syslog ypserv
crond iptables mysql ntpd rhnsd tux ypxfrd
[root@localhost init.d]# ./mysql
Usage: ./mysql start|stop|restart
[root@localhost init.d]# ./mysql start -------只好运行mysql了,运行了以后系统自动的出了下面这一行,我就回车了,
[root@localhost init.d]# Starting mysqld daemon with databases from /var/lib/mysql
[root@localhost init.d]# mysql -------从这我输入mysql回车,这是启动了mysql还是demo程序????????????
Welcome to the MySQL monitor. Commands end with ; or \g.
Your MySQL connection id is 1 to server version: 4.0.13
Type 'help;' or '\h' for help. Type '\c' to clear the buffer.
mysql> \q
Bye
[root@localhost init.d]# ./mysql stop
Killing mysqld with pid 3990
Wait for mysqld to exit\c
.\c
030908 17:50:51 mysqld ended
done
[root@localhost init.d]#
我又转入一般用户下:
[wang@localhost wang]$ mysql
Welcome to the MySQL monitor. Commands end with ; or \g.
Your MySQL connection id is 1 to server version: 4.0.13
Type 'help;' or '\h' for help. Type '\c' to clear the buffer.
mysql>
好像也可以,我这是不是正确启动了,大虾指点一下.
[root@localhost init.d]# /usr/bin/mysqladmin -u root password '123456'
我设置的这个密码是管理严密员密码吗?
用户密码子么设置给指点一下..................
谢了.............................
[root@localhost init.d]# dir ------我的init.d文件夹下没有mysqld
aep1000 cups irda named pcmcia saslauthd vsftpd
anacron firstboot isdn netfs portmap sendmail xfs
apmd functions kdcrotate network pxe single xinetd
atd gpm keytable nfs radvd squid ypbind
autofs halt killall nfslock random sshd yppasswdd
bcm5820 httpd kudzu nscd rawdevices syslog ypserv
crond iptables mysql ntpd rhnsd tux ypxfrd
[root@localhost init.d]# ./mysql
Usage: ./mysql start|stop|restart
[root@localhost init.d]# ./mysql start -------只好运行mysql了,运行了以后系统自动的出了下面这一行,我就回车了,
[root@localhost init.d]# Starting mysqld daemon with databases from /var/lib/mysql
[root@localhost init.d]# mysql -------从这我输入mysql回车,这是启动了mysql还是demo程序????????????
Welcome to the MySQL monitor. Commands end with ; or \g.
Your MySQL connection id is 1 to server version: 4.0.13
Type 'help;' or '\h' for help. Type '\c' to clear the buffer.
mysql> \q
Bye
[root@localhost init.d]# ./mysql stop
Killing mysqld with pid 3990
Wait for mysqld to exit\c
.\c
030908 17:50:51 mysqld ended
done
[root@localhost init.d]#
我又转入一般用户下:
[wang@localhost wang]$ mysql
Welcome to the MySQL monitor. Commands end with ; or \g.
Your MySQL connection id is 1 to server version: 4.0.13
Type 'help;' or '\h' for help. Type '\c' to clear the buffer.
mysql>
好像也可以,我这是不是正确启动了,大虾指点一下.
[root@localhost init.d]# /usr/bin/mysqladmin -u root password '123456'
我设置的这个密码是管理严密员密码吗?
用户密码子么设置给指点一下..................
谢了.............................