mysql的登录:[root@lianxi ~]# /usr/local/mysql/bin/mysql -uroot //登录mysql,
Welcome to the MySQL monitor. Commands end with ; or \g.
Your MySQL connection id is 152
Server version: 5.1.40-log MySQL Community Server (GPL)
Type 'help;' or '\h' for help. Type '\c' to clear the current input statement.
mysql>
/因为PATH里面没有 /usr/local/mysql/bin/,所以要加上 这一串,若想直接用mysql,我们可以设置PATH,或者设置别名[root@lianxi ~]# alias mysql="/usr/local/mysql/bin/mysql" //用alias设置别名
[root@lianxi ~]# mysql //可直接用mysql登录
Welcome to the MySQL monitor. Commands end with ; or \g.
Your MySQL connection id is 153
Server version: 5.1.40-log MySQL Community Server (GPL)
Type 'help;' or '\h' for help. Type '\c' to clear the cu