mysqladmin

Is there a way to pass the DB user password into the command line tool mysqladmin?

穿精又带淫゛_ 提交于 2019-12-29 11:40:12
问题 I currently use the following but it ALWAYS prompts me to manually type the password. Is there any way to pass it in on the command line when launching the executable? mysqladmin processlist -u root -p 回答1: Just found out the answer.... mysqladmin processlist -u root -pYOURPASSWORDHERE No space between your password and the -p 回答2: Try: --password=PasswordTextHere 回答3: This should work: mysql -uroot -p'password' If you're trying to automate mysql solution, you can use password from variable:

MySQL root password change

倖福魔咒の 提交于 2019-12-28 03:31:06
问题 I have been trying to reset my MySQL root password. I have run the mysqld_safe --skip-grant-tables, updated the root password, and checked the user table to make sure it is there. Once restarting the mysql daemon I tried logging in with the new root password that I just set and still get Access denied for user 'root' errors. I have also tried completely removing and reinstalling mysql (including removing the my.cnf file) and still no luck. Does anyone have any suggestions on what I can do

Can't connect to local MySQL server through socket tmp/mysql.sock

霸气de小男生 提交于 2019-12-25 18:16:53
问题 Having just tried to access some mysqladmin privileges within terminal (flush_hosts), I have noticed that the socket problem has resurfaced with the error Can't connect to local MySQL server through socket '/tmp/mysql.sock' (2)*. I have no servers running currently. How can this be solved? 回答1: Wow, yourself mentioned, you 'must' run a server that can to connect it,Please consider: root@debian:/etc/init.d# /etc/init.d/mysql stop [ ok ] Stopping MySQL database server: mysqld. root@debian:/etc

Difference between mysql, mysqladmin, mysqld [closed]

点点圈 提交于 2019-12-17 21:46:34
问题 Closed. This question is off-topic. It is not currently accepting answers. Want to improve this question? Update the question so it's on-topic for Stack Overflow. Closed 5 years ago . Can someone give me a clear explanation of the differences between mysql (command line tool), mysqladmin (client tool for performing administrative tasks) and mysqld (mysql server). 回答1: You could easily find that out yourself by just reading the man pages about the three commands: mysqld is the server

ERROR 1044 (42000): Access denied for 'root' With All Privileges

那年仲夏 提交于 2019-12-17 09:35:15
问题 I have strange error. I am logged in local Mysql as root via command line. After creating database: create database some_db; Then giving privileges to some user: grant all privileges on some_db.* to some_user@'localhost' identified by 'password'; This is giving error: ERROR 1044 (42000): Access denied for user 'root'@'localhost' to database 'some_db' The permissions for the root(show grants;) shows: GRANT ALL PRIVILEGES ON *.* TO 'root'@'localhost' IDENTIFIED BY PASSWORD '

Revoke privileges from user in mySQL

冷暖自知 提交于 2019-12-11 13:56:13
问题 For every new user we create in mySQL using the statement CREATE USER newuser@localhost IDENTIFIED BY 'password'; "SHOW GRANTS" is showing only "USAGE ON *.* " privilege. But the user is able to select,insert,.. on "test" and "information_schema" databases and I'm unable to revoke these privileges on "test" using the revoke statement given below. REVOKE ALL ON test.* FROM newuser@localhost; ERROR 1141 (42000) : There is no such grant defined for user 'guest' on host 'localhost' I just don't

SQL: Interrupting a query

喜夏-厌秋 提交于 2019-12-09 16:50:05
问题 I've worked on a project using a proprietary non-SQL DB where queries could be interrupted and in the codebase there were quite some spots where that functionnality was used and made perfect sense (for example to stop a long running query that gets cancelled by the user, or when a more recent query takes place and renders the previous query obsolete, etc.) and I realized I never really saw that kind of "interrupted queries" previously and thought it could make a good SO question (several

linux mint mysql-server and mysql-workbench installation and setup issue

百般思念 提交于 2019-12-08 06:54:34
问题 I tried to below OS installed on my laptop Mint version 19, Code name : Tara, PackageBase : Ubuntu Bionic Cinnamon (64-bit) I have installed mysql-server using below command: xxxxxxx:~$ sudo apt-get install mysql-server During this installation I was not prompted to enter any root password. TO see if installation was successful, I ran below command: xxxxxxxxxx:~$ mysql -V mysql Ver 14.14 Distrib 5.7.23, for Linux (x86_64) using EditLine wrapper xxxxxxxxxx:~$ sudo service mysql status ● mysql

mysqladmin: connect to server at 'localhost' failed

醉酒当歌 提交于 2019-12-05 17:45:23
问题 Today (2015-05-02) I upgraded my Linux system via apt-get update and apt-get upgrade whereas mysql, mysqladmin and a lot more packages have been updated. The mysql-server-5.5 runs and I can login and do all the typical database operations but when I type: user@ubuntu:~# mysqladmin proc I get the following error: mysqladmin: connect to server at 'localhost' failed error: 'Access denied for user 'root'@'localhost' (using password: NO)' Formerly I could solve this issue by simple setting the