从今天开始学习mysql数据库,记录生活中成长的点点滴滴:
[root@mysqldb init.d]# cd /etc/init.d/
[root@mysqldb init.d]# ls | grep mysql
mysqld
[root@mysqldb init.d]# mysqld -h
-bash: mysqld: command not found
[root@mysqldb init.d]# mysqld stop
-bash: mysqld: command not found
[root@mysqldb init.d]# ./mysqld stop
Stopping mysqld: [ OK ]
[root@mysqldb init.d]# ./mysqld start
Starting mysqld: [ OK ]
[root@mysqldb init.d]# ./mysqld restart
Stopping mysqld: [ OK ]
Starting mysqld: [ OK ]
[root@mysqldb init.d]#
root@mysqldb init.d]# mysql -uroot
Welcome to the MySQL monitor. Commands end with ; or \g.
Your MySQL connection id is 2
Server version: 5.1.71 Source distribution
Copyright (c) 2000, 2013, 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>