How does a VM connect to a MySQL database?

Source: Internet
Author: User

MySQL database management:

Download the phpMyAdmin software, decompress the package, and find a file: config. inc. PHP (or config. *. The file name varies with phpMyAdmin versions.) modify the following Configuration:


Then you FTP to your website, create a directory phpMyAdmin under wwwroot, upload all phpMyAdmin files to this directory and access www.at0731.com/phpmyadmin to manage your database. after you have created your database, remember to remove the phpadmin files. Otherwise, anyone can manage your database. if you use Perl for programming, you can use the followingCodeConnect to the database:

The VM directory contains three subdirectories. What are their respective roles?
 
Three subdirectories, wwwroot, logfile, and database, are set under the user's virtual host. Wwwroot-stores the user site page, that is, you should upload files to this directory; logfile-stores site access logs; database-stores database files.
 
How can I remotely manage a rented server?

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.