我想通过设置root密码来保护mysql.我成功重置了root密码:
MariaDB [(none)]> select Host, User, Password from mysql.user;
+-----------+------+-------------------------------------------+
| Host | User | Password |
+-----------+------+-------------------------------------------+
| localhost | root | *58319282EAB9E38D49CA25844B73DA62C80C2ABC |
+-----------+------+-------------------------------------------+
1 row in set (0.00 sec)
Run Code Online (Sandbox Code Playgroud)
但是,在刷新权限后,重新启动Mysql,我仍然可以在不输入密码的情况下登录mysql(在本地主机上).
root@myhost:/# mysql
Welcome to the MariaDB monitor. Commands end with ; or \g.
Your MariaDB connection id is 10
Server version: 10.0.29-MariaDB SLE 12 SP1 package
Copyright (c) 2000, 2016, Oracle, MariaDB Corporation Ab and others.
Type 'help;' or '\h' for help. Type '\c' to clear the …
Run Code Online (Sandbox Code Playgroud) 我有一个关于apache配置的问题.请帮我!我的服务器运行多个虚拟主机(多个域).但是,每次编辑vhost文件时,我都必须重新启动apache,并且服务器必须重新加载所有配置文件.那很贵.有没有办法"重启"或"重新加载" 一个 vhost配置文件?我用谷歌搜索,但没有找到解决方案.