简体   繁体   English

在哪里可以找到PHPMyAdmin中MySQL数据库PHP连接的确切凭据?

[英]Where can I locate exact credentials for MySQL Database PHP connection in PHPMyAdmin?

Where can I find the exact credentials to input into my PHP script to connect to a MySQL database. 在哪里可以找到要输入到我的PHP脚本中以连接到MySQL数据库的确切凭据。 If applicable, where is this information in the latest cPanel or recent PHPMyAdmin. 如果适用,最新的cPanel或最新的PHPMyAdmin中的此信息在哪里?

  1. In the cPanel go to MySQL Databases section. 在cPanel中,转到“ MySQL数据库”部分。
  2. And then scroll down to the Add New User Section and add a new user. 然后向下滚动到“添加新用户”部分并添加一个新用户。
  3. Then scroll down to the Add User To the Database section and add your created user to the Database. 然后向下滚动到“将用户添加到数据库”部分,并将您创建的用户添加到数据库。
  4. Give the user all the privileges that you want it to have. 为用户提供所需的所有特权。
  5. Enjoy! 请享用!

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

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