Don't like ads? PRO users don't see any ads ;-)
Guest

Untitled

By: a guest on Aug 10th, 2012  |  syntax: None  |  size: 0.36 KB  |  hits: 9  |  expires: Never
download  |  raw  |  embed  |  report abuse  |  print
Text below is selected. Please press Ctrl+C to copy to your clipboard. (⌘+C on Mac)
  1. can access my sql without using password but cannot access with password
  2. CREATE USER 'new-username'@'localhost' IDENTIFIED BY 'new-password';
  3. GRANT ALL ON *.* TO 'new-username'@'localhost' WITH GRANT OPTION;
  4.        
  5. mysql -u new-username
  6.        
  7. mysql -u new-username -p
  8.        
  9. ERROR 1045 (28000): Access denied for user 'new-username'@'localhost' (using password: YES)