ERROR 1698 (28000): Access denied for user ‘root’@’localhost’

Some systems like Ubuntu, MySQL is using the UNIX auth_socket plugin by default. Basically it means that: db_users using it, will be “authenticated” by the system user credentials. You can see if your root user is set up like this by doing the following: As you can see in the query, the root user is using the auth_socket plugin. There are two ways to solve this: … Read more

sql query with multiple where statements

You need to consider that GROUP BY happens after the WHERE clause conditions have been evaluated. And the WHERE clause always considers only one row, meaning that in your query, the meta_key conditions will always prevent any records from being selected, since one column cannot have multiple values for one row. And what about the redundant meta_value checks? If a value is allowed to … Read more

MySQL ERROR 1290 (HY000) –secure-file-priv option

Ubuntu 16.04 (EASY): Find out where you are allowed to write Then, just write there Mac OSX: Mysql installed via MAMP Find out where you are allowed to write NULL means you’re screwed so you have to create the file “~/.my.cnf” Enable read/write for MySQL installed via MAMP (on Mac): open “MAMP” use spotlight click … Read more

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)