数据库单个用户
Sometimes there are more than one WordPress installation is necessary, but your host might have limited MySQL Database allowance. Well the solution to that problem is having multiple WordPress installation in one database.
有时需要安装多个WordPress,但是您的主机可能具有有限MySQL数据库配额。 好了,该问题的解决方案是在一个数据库中安装多个WordPress。
You must install WordPress manually in order for this to work. Most one click programs like Fantastic would not let you choose the prefix.
您必须手动安装WordPress才能使其正常工作。 大多数像Fantastic这样的一键式程序都不允许您选择前缀。
During the installation in your config.php phase, you want to change the prefix “wp_” in order to allow multiple installation. So it can be wpchris_ and the next one can be wpben_ you can use different prefix and use them to create as many installation as you need.
在config.php阶段的安装过程中,您想要更改前缀“ wp_”以允许多次安装。 因此可以是wpchris_,下一个可以是wpben_,您可以使用不同的前缀,并根据需要使用它们创建尽可能多的安装。
That is all you really need to do. This is also a security measure that you can take even if you don’t have to install multiple installation. By having a prefix, you are making the hacker work more to find out what is the SQL Address before he can hack.
这就是您真正需要做的。 即使不必安装多个安装,这也是可以采取的安全措施。 通过使用前缀,您可以使黑客更多地工作,以便在黑客可以入侵之前找出SQL地址。
翻译自: https://www.wpbeginner.com/beginners-guide/multiple-wordpress-installation-using-a-single-database/
数据库单个用户