我成功地在OpenWRT上安装了MySql而没有任何错误 - 请参阅下文,但我遇到登录问题 - 它告诉我拒绝访问 . 但根据我在互联网上找到的所有内容,默认用户名是root,没有密码所以我必须是一个特例 .
请看下面的内容:
root@OpenWrt:~# mysql_install_db
Installing MySQL system tables...
OK
Filling help tables...
OK
To start mysqld at boot time you have to copy
support-files/mysql.server to the right place for your system
PLEASE REMEMBER TO SET A PASSWORD FOR THE MySQL root USER !
To do so, start the server, then issue the following commands:
/usr/bin/mysqladmin -u root password 'new-password'
/usr/bin/mysqladmin -u root -h OpenWrt password 'new-password'
Alternatively you can run:
/usr/bin/mysql_secure_installation
which will also give you the option of removing the test
databases and anonymous user created by default. This is
strongly recommended for producti