PHP + MySQL + Linux has gradually become a classic combination of small web servers. Building and debugging MySQL Databases in Windows is a preferred choice for many website developers. I am a beginner in MySQL in Windows 98. I will summarize the learning process and experience for your reference.
1. Download mysql-3.23.35-win.zip and decompress it;
2. Run setup.exe; select d: \ mysql, "tyical install"
3. Start mysql using the following methods:
Method 1: Use winmysqladmin
1) enter the d: \ mysql \ bindirectory and run winmysqladmin.exe. A red icon is displayed in the taskbar in the lower right corner of the screen.
2) Click the icon with the left mouse button and select "show me". The "WinMySQLAdmin" operation interface is displayed. During the first running, a dialog box is displayed asking you to enter and set your username and password.
3) Select "My. INI setup"
4) Select "mysqld-opt" (win9x) or "mysqld-nt" (winNT) in "mysqld file)
5) Select "Pick-up or Edit my. ini values" to Edit your my. ini file in the right window.
6) select Save Modification to Save your my. ini file.
7) If you want to quickly use winmysqladmin (automatically run upon startup), select "Create ShortCut on Start Menu"
8) test:
Enter the DOS interface;
Run mysql in the d: \ mysql \ bin directory to enter the mysql interactive operation interface.
Enter show databases and press Enter. The current two databases mysql and test are displayed.
Method 2: Do not use winmysqladmin
1) in the DOS window, enter the d:/mysql/bin directory.
2) run in win9X:
Mysqld
Run in NT:
Mysqld-nt -- standalone
3) since then, mysql has been running in the background
4) test mysql in the Directory d:/mysql/bin)
A) When mysqlshow is normal, the existing two databases mysql and test are displayed
B) When mysqlshow-u root mysql is normal, the following five tables are displayed:
columns_priv db host tables_priv user
|
C). mysqladmin version status proc displays the version number, status, and process information.
D) and mysql test enter the mysql operation interface. The current database is test.
5) mysql shutdown method: mysqladmin-u root shutdown
4. Now, MySQL has been successfully installed, and you can familiarize yourself with common MySQL commands and create your own database.