关于mysql数据库不出现名为mysql数据库的解决办法
来源:互联网 发布:网络合作学习平台 编辑:程序博客网 时间:2024/05/22 16:32
关于mysql数据库不出现名为mysql数据库的解决办法
另外该方法同样可ERROR 1045 (28000): Access denied for user ‘melina’@’localhost’ (using password: YES)类型的错误
- 首先用root权限执行 /etc/init.d/mysqld stop 停止mysql服务器
接着执行 # mysqld_safe –skip-grant-tables & 确定服务器已停止,出现如下信息:
[1] 16071
# 151116 12:38:56 mysqld_safe Logging to ‘/var/log/mysqld.log’.
151116 12:38:56 mysqld_safe Starting mysqld daemon with databases from /var/lib/mysql看到上面的结果后,输入mysql -u melina 出现下面结果:
Welcome to the MySQL monitor. Commands end with ; or \g.
Your MySQL connection id is 1
Server version: 5.1.73 Source distributionCopyright (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>- 输入use mysql,切换到mysql数据库
mysql> use mysql
Reading table information for completion of table and column names
You can turn off this feature to get a quicker startup with -A
Database changed
5.执行更新密码
mysql>update user set password=password(“root”) where user=”root”;
Query OK, 4 rows affected (0.00 sec)
Rows matched: 4 Changed: 4 Warnings: 0
mysql> commit;
Query OK, 0 rows affected (0.00 sec)
mysql> exit;
Bye
退出后输入如下命令启动:mysql -uroot,如下:
# mysql -u root
Welcome to the MySQL monitor. Commands end with ; or \g.
Your MySQL connection id is 3
Server version: 5.1.37-1ubuntu5.5 (Ubuntu)
Type ‘help;’ or ‘\h’ for help. Type ‘\c’ to clear the current input statement.
mysql>
6.然后输入show databases;
mysql> show dataabses;
应该会出现mysql数据库
- 关于mysql数据库不出现名为mysql数据库的解决办法
- MYSQL中出现名为#mysql50#的数据库,解决办法
- 关于mysql数据库8小时不进行操作连接自动断开问题的解决办法
- mysql数据库中数据表出现乱码解决办法
- MYSQL数据库导入数据时出现乱码的解决办法
- MYSQL数据库导入数据时出现乱码的解决办法
- 中文数据存入数据库mysql出现??的解决办法
- MYSQL数据库导入数据时出现乱码的解决办法
- MYSQL数据库导入数据时出现乱码的解决办法
- MYSQL数据库导入数据时出现乱码的解决办法
- MYSQL数据库导入数据时出现乱码的解决办法
- MYSQL 数据库内容出现中文乱码的解决办法
- CodeSmith连接不上PostgreSql,MySql数据库的解决办法
- 关于MySQL数据库重装失败,出现问题,重装的时候出现错误1130的问题和解决办法。
- MySQL数据库死锁的解决办法
- MySql数据库出现的错误
- 关于无法net start mysql无法启动数据库的解决办法
- 关于win8系统安装Mysql数据库出现的问题
- android listview优化
- 自媒体推广的方法和技巧有哪些?
- Django的Helloworld
- soj 3085 windy's cake V 单调栈的应用
- tableView Crash
- 关于mysql数据库不出现名为mysql数据库的解决办法
- XAMPP: Another web server is already running
- AndroidStudio使用备忘:报错finished with non-zero exit value 2
- 服务器、客户端双认证(2)
- Windows调试Postgresql
- 两个路由器之间静态ARP和代理ARP配置
- 换个格式输出整数
- 文件操作
- LeetCode:Summary Ranges