Apakah Anda pernah mengalami konflik port saat memulai MySQL di XAMPP?
09:29:18 [mysql] Problem detected! 09:29:18 [mysql] Port 3306 in use by "Unable to open process"! 09:29:18 [mysql] MySQL WILL NOT start without the configured ports free! 09:29:18 [mysql] You need to uninstall/disable/reconfigure the blocking application 09:29:18 [mysql] or reconfigure MySQL and the Control Panel to listen on a different portBerikut adalah salah satu metode untuk mengatasi masalah ini menggunakan langkah-langkah berikut
Langkah 1
Hentikan server Apache, jika sudah berjalan
Pada Panel Kontrol XAMPP, klik Stop di bawah Module Apache on Action Column
Langkah 2
Edit nilai ke port
Pada XAMPP Control Panel, di bawah Module MySQL klik Config pada Action Column dan pilih “my. ini”
Langkah 3
Pada saya. ini- Jendela editor,
Kemudian ubah nomor port dari 3306 menjadi 3307
Langkah 4
Tutup Panel Kontrol XAMPP dan mulai ulang
Langkah 5
Mulai server Apache dan kemudian mulai MySQL, Anda sekarang akan melihat bahwa MySQL sedang mencoba untuk terhubung ke server xampp melalui port 3307
Kesimpulan
Kami baru saja belajar bagaimana mengatasi port yang bertentangan saat memulai MySQL di XAMPP. Jika Anda perlu mengetahui cara menginstal XAMPP Langkah demi Langkah pada mesin Windows, periksa ini
- Laporkan artikel ini
Laporan
Laporan
Kembali Kirim
Piyush Diwakar
Piyush Diwakar
MySQL. Mongo. Pergeseran merah. AWS. Peramal. Sr. DBA di Paytm Money. Mantan RAKUTEN. Mantan Innoeye
Diterbitkan 11 Februari 2021
+ Ikuti
Dalam tutorial ini, saya akan memandu Anda bagaimana mengubah port default mysql dan apa tujuan dari mysql_secure_installation
Di bawah ini adalah apa yang akan kami lakukan untuk tujuan ini
- Hentikan Layanan MySQL
- Ubah port di File Konfigurasi MySQL
- Mulai ulang Layanan MySQL
- Jalankan Skrip Keamanan (mysql_secure_installation)
- Ubah kata sandi untuk root
- Hapus pengguna anonim
- Larang login root dari jarak jauh
- Hapus basis data pengujian dan akses ke sana
- Muat ulang tabel hak istimewa sekarang
- Login ke MySQL Shell dengan Kata Sandi Baru
Langkah 1 - Hentikan Layanan MySQL
Untuk CentOS
[root@DBA-Master ~]# service mysqld stop _Untuk Ubuntu
[root@DBA-Master ~]# service mysql stopLangkah 2 - Ubah Port di File Konfigurasi MySQL
Untuk CentOS
[root@DBA-Master ~]# vi /etc/my.cnf [mysqld] port= 4545 datadir= /home/ist/mysql save and exitUntuk Ubuntu
[root@DBA-Master ~]# vi /etc/mysql/mysql.conf.d/mysqld.cnf [mysqld] port=4545 datadir= /home/ist/mysql save and exit _Langkah 3 - Mulai Ulang Layanan MySQL
Untuk CentOS
[root@DBA-Master ~]# service mysqld start _Untuk Ubuntu
[root@DBA-Master ~]# service mysql startLangkah 4 - Jalankan Skrip Keamanan (mysql_secure_installation)
[root@DBA-Master ~]# mysql_secure_installation Securing the MySQL server deployment. Enter password for user root: The 'validate_password' plugin is installed on the server. The subsequent steps will run with the existing configuration of the plugin. Using existing password for root. Estimated strength of the password: 100 Change the password for root ? ((Press y|Y for Yes, any other key for No) : Y New password: Re-enter new password: Estimated strength of the password: 100 Do you wish to continue with the password provided?(Press y|Y for Yes, any other key for No) : Y By default, a MySQL installation has an anonymous user, allowing anyone to log into MySQL without having to have a user account created for them. This is intended only for testing, and to make the installation go a bit smoother. You should remove them before moving into a production environment. Remove anonymous users? (Press y|Y for Yes, any other key for No) : Y Success. Normally, root should only be allowed to connect from 'localhost'. This ensures that someone cannot guess at the root password from the network. Disallow root login remotely? (Press y|Y for Yes, any other key for No) : Y Success. By default, MySQL comes with a database named 'test' that anyone can access. This is also intended only for testing, and should be removed before moving into a production environment. Remove test database and access to it? (Press y|Y for Yes, any other key for No) : Y - Dropping test database... Success. - Removing privileges on test database... Success. Reloading the privilege tables will ensure that all changes made so far will take effect immediately. Reload privilege tables now? (Press y|Y for Yes, any other key for No) : Y Success. All done! [root@DBA-Master ~]# mysql -uroot -p [root@DBA-Master ~]# service mysql stop 0Ini adalah Presentasi video untuk Mengubah Port default dan mengamankan mysql dengan mysql_secure_installation di MySQL