PHP + MySQL + Linux has gradually become a classic combination of small Web servers. Building and debugging MySQL databases in the indows environment 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 d:/MySQL/bin directory)
A), mysqlshow
Normally, the two databases MySQL and test are displayed.
B), mysqlshow-u root MySQL
Normally, the following five tables are displayed in MySQL:
Columns_priv
DB
Host
Tables_priv
User
C), mysqladmin version status proc
Displays the version number, status, and process information.
D) MySQL Test
Enter the MySQL operation interface. The current database is test.
5) MySQL close 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.