Mysql database creation methods

Source: Internet
Author: User

Mysql php combination is very popular now. Next we will summarize several methods for creating mysql databases. Because it is very simple to create databases, let's talk about it quickly,

Now we are very popular with mysql tutorials and php tutorials. Below we will summarize several tutorials on mysql database creation. As database creation is simple, we will give you a quick introduction,

Method 1: Use the mysql command mode

Mysql> create database dbname;

In this way, the database dbname is successfully created;

Method 2: Use phpmyadmin to simplify the process,

Method 3: Use the php mysql program to create a database

<?
$ Cn = mysql_connect ('www. bKjia. c0m', 'root', 'www. bKjia. c0m ');
Mysql_query ("create database dbname ");
?>

That's ko.

This site Original article reprinted indicated from http://www.bKjia. c0m otherwise required

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.