Register for your free account! | Forgot your password?

Go Back   elitepvpers > Popular Games > Metin2 > Metin2 Private Server > Metin2 PServer Guides & Strategies
You last visited: Today at 23:16

  • Please register to post and access all features, it's quick, easy and FREE!

Advertisement



[FIX] Mysql warning "password on the command line"

Discussion on [FIX] Mysql warning "password on the command line" within the Metin2 PServer Guides & Strategies forum part of the Metin2 Private Server category.

Reply
 
Old   #1
 
elite*gold: 110
Join Date: Oct 2009
Posts: 134
Received Thanks: 96
Exclamation [FIX] Mysql warning "password on the command line"

This warning only show up with mysql version 5.6 & 5.7. If you have a lower version please ignore this post.

Warning on shell & mysql log: Using a password on the command line interface can be insecure.

I know a lot of people use the mysql_query (standard) function from questlib.lua and they get this warning.

If you use a mysql user change the above "YOURUSERNAME" and use the command:

Code:
mysql_config_editor set --login-path=local --host=localhost --user=YOURUSERNAME --password
If you use the root mysql user, use the command:
Code:
mysql_config_editor set --login-path=local --host=localhost --user=root --password
Put your password. OK..

We can see, the system creates a new crypted file: .mylogin.cnf
You can see this file on /home/YOURUSERNAME/.mylogin.cnf or for root: /root/.mylogin.cnf
Is crypted but you can see what's inside (password is hidden by *****) with the command:
Code:
mysql_config_editor print --all
If you want to enter mysql just use the command:
Code:
mysql --login-path=local
Now .. lets open questlib.lua and remove the mysql_query function and add this new one .. because is not need to read anymore what's inside of CONFIG file (get username/password).
Replace your function with this one:


That is all. Have a nice day!
[TM]SixSense is offline  
Thanks
17 Users
Reply

Tags
insecure, mysql, password command line


Similar Threads Similar Threads
Warning: Using a password on the command line interface can be insecure.
09/03/2015 - Metin2 Private Server - 5 Replies
Hallo liebe Com. Ich nutze die Mysql 5.6 und bekomme immer diese message: Warning: Using a password on the command line interface can be insecure. Wollte mal fragen wie ich die Warnmessage fixxe, finde dazu nix
friends what is bonus add "command" like "71051" and "71052" jobs command its need fo
12/22/2013 - Metin2 Private Server - 0 Replies
friends what is bonus add "command" like "71051" and "71052" jobs commands its need for me for quest boni so i want add boni as "71051" and "71052" but with quest
friends what is bonus add "command" like "71051" and "71052" jobs command its need fo
12/22/2013 - Metin2 Private Server - 0 Replies
friends what is bonus add "command" like "71051" and "71052" jobs commands its need for me for quest boni so i want add boni as "71051" and "71052" but with quest push



All times are GMT +2. The time now is 23:16.


Powered by vBulletin®
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
SEO by vBSEO ©2011, Crawlability, Inc.
This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.

Support | Contact Us | FAQ | Advertising | Privacy Policy | Terms of Service | Abuse
Copyright ©2024 elitepvpers All Rights Reserved.