mysql登录账号
发表于 : 2012-09-25 16:18
mysql实在ubuntu 12.04下通过sudo apt-get install mysql-server mysql-client安装的,安装时要求为root制定密码,已经指定-----
安装完成后,以当前用户身份在Terminal中敲mysql 竟然直接登入了数据库,敲mysql -u root -p 要求输入密码也登录成功,这是神马问题,非root用户直接敲mysql都能进,难道没密码?????????
=======================================================================================================================
~$ mysql
Welcome to the MySQL monitor. Commands end with ; or \g.
Your MySQL connection id is 46
Server version: 5.5.24-0ubuntu0.12.04.1 (Ubuntu)
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>
安装完成后,以当前用户身份在Terminal中敲mysql 竟然直接登入了数据库,敲mysql -u root -p 要求输入密码也登录成功,这是神马问题,非root用户直接敲mysql都能进,难道没密码?????????
=======================================================================================================================
~$ mysql
Welcome to the MySQL monitor. Commands end with ; or \g.
Your MySQL connection id is 46
Server version: 5.5.24-0ubuntu0.12.04.1 (Ubuntu)
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>