This article explains how to install, configure and run mySQL 5.0.x under Microsoft Windows. Artikel ini menjelaskan cara menginstal, mengkonfigurasi dan menjalankan mySQL 5.0.x di bawah Microsoft Windows. Note! Catatan! You might want to install Apache HTTP server first, and/or uninstall previous versions of mySQL. Anda mungkin ingin menginstal Apache server HTTP pertama, dan / atau menghapus versi sebelumnya dari mySQL.
1. 1. Download and Unpack mySQL v5.0.x Download dan Uraikan mySQL v5.0.x
Download and install the latest version of mySQL 5.0.x from http://dev.mysql.com/downloads/mysql/5.0.html . Just make sure you get a Windows 95/98/NT/2000/XP/2003 (x86) binary, Windows Essentials (x86) version (skip all the questions part and scroll down to the mirrors list). Men-download dan menginstal versi terbaru dari 5.0.x mySQL http://dev.mysql.com/downloads/mysql/5.0.html . Pastikan Anda mendapatkan Windows 95/98/NT/2000/XP/2003 (x86 ) biner, Windows Essentials (x86) versi (melewati semua bagian pertanyaan dan gulir ke bawah ke daftar mirror).
My file was named: mysql-essential-5.0.16-win32.msi file saya bernama: mysql-essential-5.0.16-win32.msi
2. 2. Install mySQL v5.0.x Instal mySQL v5.0.x
Run the MSI file and use the following settings Jalankan MSI file dan menggunakan pengaturan berikut
• Typical Setup Typical Setup
• Skip Sign-Up Skip Sign-Up
• make sure "Configure the mySQL Server now" is checked pastikan "Konfigurasi Server mySQL sekarang" dicentang
• "Detailed Configuration" "Detail Konfigurasi"
• "Developer Machine" "Developer Machine"
• "Multifunctional Database" "Multifunction Database"
• "InnoDB Tablespace Settings" - leave everything default "InnoDB Tablespace Settings" - meninggalkan default segalanya
• "Decision Support (DSS)/OLAP" "Decision Support (DSS) / OLAP"
• make sure "Enable TCP/IP Networking" is checked and leave the port number at 3306 (at this point, if you have a firewall, it will usually try to access itself on the localhost) pastikan "Enable TCP / IP Networking" diperiksa dan meninggalkan nomor port pada 3306 (pada saat ini, jika Anda memiliki firewall, biasanya akan mencoba untuk mengakses sendiri di localhost)
• "Standard Character Set" "Set Standar Karakter"
• check "Install As Windows Service" cek "Instal Sebagai Windows Service"
• I recommend leaving "Include Bin Directory in Windows PATH" checked Saya sarankan meninggalkan "Sertakan Direktori Bin pada Windows PATH" diperiksa
• enter your root password masukkan password root anda
• then hit "execute" and it´ll install and set it up kemudian menekan "mengeksekusi" dan itu akan menginstal dan mengaturnya
3. 3. Getting PHP5 to work with mySQL Mendapatkan PHP5 untuk bekerja dengan mySQL
Unfortunately PHP5 removed built-in support for mySQL. Sayangnya PHP5 dihapus built-in mendukung untuk mySQL. So you´ll need to copy some files by hand. Jadi, Anda harus menyalin beberapa file dengan tangan. open the folder you unzipped your PHP to. membuka folder yang Anda unzip PHP untuk Anda. Copy the libmysql.dll file (should be located like c:\php5\libmysql.dll ) into your Window´s System folder (usually C:\Windows\System32\ although might be c:\WinNT\System\ or something). Salin file libmysql.dll (harus ditempatkan seperti c: \ php5 \ libmysql.dll) ke folder Window System Anda (biasanya C: \ Windows \ System32 \ meskipun mungkin c: \ WinNT \ System \ atau sesuatu).
Then open up your php.ini in a text editor and search for ;extension=php_mysql.dll and remove the ; in front of that line. Kemudian buka php.ini Anda dalam editor teks dan mencari; extension = php_mysql.dll dan menghapus; di depan garis itu.
Do the same for ;extension=php_mbstring.dll . Without the mbstring extension phpMyAdmin is unable to split strings correctly and it may result in unexpected results. Lakukan hal yang sama untuk; extension = php_mbstring.dll. Tanpa ekstensi mbstring phpMyAdmin tidak dapat membagi string dengan benar dan dapat menyebabkan hasil yang tidak diharapkan.
Restart Apache and see if you get any errors. Restart Apache dan lihat apakah Anda mendapatkan kesalahan apapun. If it complains about php_mysql.dll either your extention directory isn´t correct or windows can´t find libmysql.dll Jika mengeluh tentang php_mysql.dll baik direktori perpanjangan Anda tidak benar atau jendela tidak dapat menemukan libmysql.dll
If you don´t want to move files outside your php5 directory, you may also add the php5 directory to the PATH on Windows. Jika Anda tidak ingin memindahkan file di luar direktori Anda PHP5, Anda juga dapat menambahkan direktori PHP5 ke PATH pada Windows. Please read the following article on how to do this. Silakan baca artikel berikut tentang cara melakukan ini.
4. 4. Testing mySQL Pengujian mySQL
Testing mySQL is not exactly easy. Pengujian mySQL tidak tepat mudah. However, here are the common connection strings for PHP and CGI. Namun, di sini adalah koneksi string biasa untuk PHP dan CGI. I recommend downloading phpMyAdmin and using it to create and manage your databases, etc. Saya sarankan download phpMyAdmin dan menggunakannya untuk membuat dan mengelola database Anda, dll
Bagaimana menginstal mySQL 5.0.x pada Window
Langganan:
Posting Komentar (Atom)
0 comments:
Posting Komentar