The first knowledge of the sqlyogent of MySQL management tool

Source: Internet
Author: User

Intermediary transaction http://www.aliyun.com/zixun/aggregation/6858.html ">seo diagnose Taobao guest cloud host technology Hall

If you choose PHP to build the site, you must understand that PHP to build a database, it is necessary to use MySQL data. Just contact with a friend of PHP may be unfamiliar to this MySQL database, but if there is a very useful database management tools, it is more convenient to use, the author a few days to introduce a MySQL management tool sqlyogent, the author is used sqlyogent is the English version, At present, there seems to be no Chinese version, because of powerful, so sqlyogent very popular with PHP users, and then use the example to explain how to use sqlyogent to build a simple database. The database I built today is called "MyDB", which contains a table "news". Next we open the sqlyogent to actually operate.

First, open sqlyogent, because to run MySQL must first open the operating environment, the author uses the PHP operating environment is WAMP, very good use, a key installation.

Second, open the sqlyogent will first pop-up link database interface, such as figure, MySQL hostaddress option box fill in the address of the stack, the default this machine is "localhost", User name option box is to fill in the database management username, local default "root ", the Password option box is to fill in the database management password, this machine defaults to empty, port is the database port, the default is OK, the last point of the" Connect "button to link.

If the address, username, password will be the correct link to the success of the random pop-up interface is the entire database list, as shown.

Third, create a new database. In the left margin of the list in the right mouse button, pop-up menu, select "Create Database", and then pop-up fill in the name of the box, such as figure, we fill in "MyDB", and then click the "Create" button, "MyDB" database was created successfully, The "MyDB" database appears in the list of databases on the left.

  

Four, create the "news" table in the "MyDB" database, find the "mydb" database in the left menu, then right-click on it, and in the pop-up menu, select "CREATE TABLE" to pop up and create the table interface, as shown

  

To create a field, first introduce the next Sqlyogent tool to create the table interface. The fields column is the field name, "Datetype" is the field type, "Len" is the field length, "PK" is the primary key, "not NULL" is allowed to be null, "Auto incr" Automatically grows (the general primary key is selected), "Comment" field description, Okay, here's how to create an interface. You can see how I set up the news table. When the settings are complete, click the Create Table button, and then the dialog box that sets the table name will pop up and write the news click OK button.

  

  

Okay, after the five steps above, you've built a MySQL database that contains a table that you can build with your actual needs on your site, and I'll continue to explain the other applications of sqlyogent.

This article for the Wood homepage Design original, reprint please reserve address www.yzmstzsb.com, thank you

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.