小编aal*_*002的帖子

错误1049(42000):未知数据库

我似乎无法登录我的教程数据库开发环境:

Ayman$ mysql -u blog -p blog_development
Enter password: 
ERROR 1049 (42000): Unknown database 'blog_development'
Run Code Online (Sandbox Code Playgroud)

我可以在没有blog_development部分的情况下正常登录数据库:

Ayman$ mysql -u blog -p
Enter password: 
Welcome to the MySQL monitor.  Commands end with ; or \g.
Your MySQL connection id is 1858
Run Code Online (Sandbox Code Playgroud)

不确定我授予所有访问权限的是什么:

mysql> GRANT ALL PRIVILEGES ON blog_development.*
    -> TO 'blog'@'localhost'
    -> IDENTIFIED BY 'newpassword';
Query OK, 0 rows affected (0.01 sec)

mysql> SHOW GRANTS FOR 'blog'@'localhost'
    -> ;
+----------------------------------------------------------------------------------------- --------------------+
 | Grants for blog@localhost                                                                                        |
 +----------------------------------------------------------------------------------------- --------------------+
| GRANT USAGE …
Run Code Online (Sandbox Code Playgroud)

mysql

18
推荐指数
1
解决办法
12万
查看次数

是的,另一个MySql:ERROR 1045(28000):拒绝访问用户'root'@'localhost'(使用密码:YES)

所以我不确定是什么原因造成我的MySql密码加密(升级到Mountain Lion,重新安装ruby/rails(其他问题),或者只是运气不好)但是我们在这里:

登录到mysql很好,但我无法登录到root

Ayman$ mysql
Welcome to the MySQL monitor.  Commands end with ; or \g.
Your MySQL connection id is 96
Server version: 5.5.25 MySQL Community Server (GPL)

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.
Run Code Online (Sandbox Code Playgroud)

当我尝试登录root时:

Ayman$ mysql -u root -p …
Run Code Online (Sandbox Code Playgroud)

ruby mysql ruby-on-rails

2
推荐指数
1
解决办法
3万
查看次数

安装后RVM无法正常工作?

好的,所以我之前有RVM工作,但在升级到Mountain Lion之后它似乎已经消失了?所以我尝试重新安装它:

Ayman$ curl -L https://get.rvm.io | bash -s stable
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                             Dload  Upload   Total   Spent    Left  Speed
100   185  100   185    0     0    200      0 --:--:-- --:--:-- --:--:--   755
100  9979  100  9979    0     0   5911      0  0:00:01  0:00:01 --:--:--  5911  
Downloading RVM from wayneeseguin branch stable
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                             Dload  Upload   Total   Spent    Left  Speed
100   125  100   125 …
Run Code Online (Sandbox Code Playgroud)

macos ruby-on-rails path .bash-profile rvm

2
推荐指数
1
解决办法
706
查看次数

标签 统计

mysql ×2

ruby-on-rails ×2

.bash-profile ×1

macos ×1

path ×1

ruby ×1

rvm ×1