简体   繁体   English

PHP网站和Wordpress网站上的相同MySQL用户

[英]Same MySQL users on PHP site and Wordpress site

My website is built on PHP, can I add a sub domain using WordPress and the users be the same on both sites? 我的网站是基于PHP构建的,我可以使用WordPress添加一个子域,并且两个站点上的用户相同吗?

For example: 例如:

My current social network site is: mysite .com 我当前的社交网站是:mysite .com

I want to add an eCommerce site to my current social networking site: market.mysite .com 我想将电子商务网站添加到当前的社交网站:market.mysite .com

I want the users to only have to register one time, same profile info for both sites. 我希望用户只需注册一次,两个站点的个人资料信息相同。 Is this possible using MySQL users? 使用MySQL用户可以吗?

Wordpress has its own users system, it doesn't create new mySQL users. Wordpress有自己的用户系统,它不会创建新的mySQL用户。 You can use WordPress multisite if you want to have the same user have rights on both sites if you want to switch the other site to WordPress. 如果要将同一站点上的其他用户切换到WordPress,如果希望同一用户在两个站点上都具有权限,则可以使用WordPress多站点 Otherwise you may be able to build a custom function that will allow a custom login that will log them in. 否则,您可能能够构建自定义功能,该功能将允许自定义登录将其登录。

It is certainly possible to share the same MYSQL user tables between two content management systems like wordpress and a cart engine. 当然,可以在两个内容管理系统(如wordpress和购物车引擎)之间共享相同的MYSQL用户表。 It would require some work by a web developer to achieve it. 要实现它,将需要Web开发人员进行一些工作。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM