2002 gagal masuk ke mysql server wamp

Re: Error #2002 - The server is not responding (or local MySQL server's socket is not correctly configured)

Alrighty, got that message earlier and 5 hours later here i am to tell you no worries

2002 gagal masuk ke mysql server wamp

I went through a lot of trouble and research to fix it, so there's a number of things that might be the problem. But i'll just give you the one i think it is. And if it doesn't work i'll try another one

Here goes:

1. Make sure you dont have any left over my.ini files.
START > search for "my.ini"

If you find a my.ini in the "c:\system32\" folder then rename it to "my2.ini" just so mysql will overlook it and look for your new my.ini. (don't delete it just in case we need it)

2. open "c:\wamp\apps\phpmyadmin3.4.5\config.inc.php" -- Your config file should look something like this:

$cfg['Servers'][$i]['verbose'] = 'localhost';
$cfg['Servers'][$i]['host'] = 'localhost';
$cfg['Servers'][$i]['port'] = '3306';
$cfg['Servers'][$i]['socket'] = '/tmp/mysql.sock';
$cfg['Servers'][$i]['connect_type'] = 'tcp';
$cfg['Servers'][$i]['extension'] = 'mysqli';
$cfg['Servers'][$i]['auth_type'] = 'config';
$cfg['Servers'][$i]['user'] = 'root';
$cfg['Servers'][$i]['password'] = '<yourpasswordhere>'; // enter your password here
$cfg['Servers'][$i]['AllowNoPassword'] = true;

3. go to "C:\wamp\bin\mysql\mysql5.5.16\my.ini" --> Verify that the port and socket location are the same as ABOVE. It should look like this

[client]
#password = your_password
port = 3306
socket = /tmp/mysql.sock

4. restart wamp server

let me know if this works if i don't log in here for a while just email me (mfalmog at gmail dot com)

Seputar Instalasi

Error Koneksi Database

  • ◄ annotate pdf tdk ada
  • ajarin donk.. ►

Saya baru belajar menggunakan moodle.

Saya sudah berhasil instalasi Moodle 3.2 dengan xampp Control Panel v3.2.2.

Namun, setelah saya buka Moodle dengan ketik -> http://localhost/moodle/ muncul pesan error berikutseperti pada gambar)

Mohon bantuannya, bagaimana saya mengatasi masalah tersebut

2002 gagal masuk ke mysql server wamp
...

Berdasarkan error message tsb, kemungkinan besar ada problem koneksi moodle ke database. Mungkin juga database server belum aktif.

Coba paste config.php disini.

Eric

Saya menggunakan xampp v.3.2.2 dengan moodle v.3.8.2+

Dalam kasus ini karena alasan 1 dan lain hal, saya menginstall Apache dan MYSQL pada XAMPP dengan hostname, SSL dan port yg berbeda dimana

Listen 8800

Server name localhost  : 8800

SSL : 4433

Port : 3307

Saat menginstall moodle tanpa installer windows di bagian setelan database saya mengalami error :

"Error: Database connection failed

It is possible that the database is overloaded or otherwise not running properly.

The site administrator should also check that the database details have been correctly specified in config.php

Warning: mysqli::__construct(): (HY000/2002): No connection could be made because the target machine actively refused it. in C:\xampp\htdocs\server\moodle\lib\dml\mysqli_native_moodle_database.php on line 79"

Saya sudah mencoba mengotak atik dbhost dan dbport sesuai yang saya install sebelumnya pada file config.-dist.php dan file mysqli_native_moodle_database pada folder dml tetapi masih tetap error.

Bagaimana cara mengatasi dan mengakalinya?

  1. Coba di cek aja mysql servernya dah up atau belum, dengan cara ketikan aja http://localhost/phpmyadmin (kalau bisa login, masukan aja user pass nya, default installan baru XAMPP user : root, pass : kosongkan). kalau bisa login, berarti koneksi mysql nya dah on.
  2. Cek username / database name dan password sql. kurang lebih seperti ini contohnya. 

2002 gagal masuk ke mysql server wamp

Semoga tercerahkan.

Ok, makasih untuk semuanya atas pencerahannya... 

maaf kak.. saya baru belajar moodle. Ini kenapa pas saya buka localhost/moodle tampilannya kayak begini. Mohon bantuannya

2002 gagal masuk ke mysql server wamp

Bisa dibantu jawab kak

On Fri, Apr 12, 2019, 08:31 areski wahid (via Moodle.org) <

Coba ditanyakan ke penyedia hosting. Ada beberapa isu paket/module PHPnya. Biasanya kendala di beberapa server share hosting, kalau VPS tidak ada kendala. 

Yakin nama foldernya dalam localhost benar adanya /moodle ? 

Sebaiknya buat thread baru, biar tidak ambigu dengan pertanyaan rekan sebelumnya.

Kalau boleh buat screenshot config dan lokasi dalam htdocsnya mungkin ada salah2 ketik aja... 

selalu semangat untuk mencoba..

coba masuk di bagian config database nah disitu ada root nya, coba copy paste hbs itu lgsung cari

tp liat dulu xampp punya mu sdh di start blm

D itempat saya Menggunakan Port

Waktu Awal Penyetingan saya memasang Port


2002 gagal masuk ke mysql server wamp

Bagaimana pak. Sudah berhasil apa belum.. Soalnya saya mengalami masalah yg sama seperti bapak.

Seiring banyaknya banyaknya pertanyaan dari Clients maupun posting komentar di forum-forum Moodle yang saya ikuti, maka saya buatkan sebuah artikel tentang Cara Membuat Elearning Moodle di localhost dan online.

Semoga bermanfaat untuk semua rekan2 yang ingin memanfaatkan Moodle sebagai sarana penunjang Elearning di Sekolah dan Lembaga Pendidikan.

——

e-Padi - Penyedia server untuk Moodle Hosting


Berdasarkan error message tsb, kemungkinan besar ada problem koneksi moodle ke database. Mungkin juga database server belum aktif. Coba paste config.php disini.

Tutorial lebih lengkap saya baca di KUYOU ID

  • ◄ annotate pdf tdk ada
  • ajarin donk.. ►