MySQL Create a database several methods

Source: Internet
Author: User
Tags mysql create mysql tutorial php mysql create database

It's very popular. The MySQL tutorial is a combination of PHP tutorials, and here we summarize several ways to create a database tutorial on MySQL, because it's easy to create a database, so let's talk about it quickly,

Method one, through the MySQL command mode

mysql> CREATE DATABASE dbname;

In this way, the database dbname was created successfully;

Method Two, this method is simpler by phpMyAdmin,

Method III, using PHP MySQL program to create a database

?
$CN = mysql_connect (' www.111cn.net ', ' root ', ' www.111cn.net ');
mysql_query ("CREATE Database dbname");
?>

On the KO.

Original articles reproduced in this site is indicated from http://www.111cn.net otherwise must investigate

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.