Edgewall Software

Changes between Version 38 and Version 39 of MySqlDb


Ignore:
Timestamp:
May 11, 2009, 9:13:05 PM (15 years ago)
Author:
Christian Boos
Comment:

Move #Troubleshooting into #KnownIssues, add page outline

Legend:

Unmodified
Added
Removed
Modified
  • MySqlDb

    v38 v39  
     1[[PageOutline(2-3)]]
    12= MySQL and its MySQLdb Python bindings =
    23
     
    7677 - [http://mysql-python.svn.sourceforge.net/viewvc/mysql-python/tags/MySQLdb-1.2.2/MySQLdb/site.cfg?revision=499&view=raw MySQLdb-1.2.2/MySQLdb/site.cfg]
    7778
    78 === Troubleshooting ===
    79 If you get an error from python when using trac-admin like this:
    80 {{{
    81 OperationalError: (1045, "Access denied for user 'tracuser'@'localhost' (using password: YES)")
    82 }}}
    83 There are a few possibilities:
    84  1. Try first to login on the command-line using the user tracuser (mysql -p -h localhost -u tracuser)
    85  1. Created user is not yet used by MySQL (Login to the MySQL server(as root): mysql -p and type FLUSH PRIVILEGES;)
    86  1. The user is added but the host does not match in the mysql user table (I had this on my FreeBSD setup). mysql -p; use mysql; UPDATE user SET Host="localhost" WHERE User="tracuser"; FLUSH PRIVILEGES;)
    87 
    8879== Known Issues ==
    8980=== Still Opened ===
     
    9889
    9990(corresponding [query:keywords=~mysql&status=!closed custom query])
     91
     92=== Troubleshooting ===
     93If you get an error from python when using trac-admin like this:
     94{{{
     95OperationalError: (1045, "Access denied for user 'tracuser'@'localhost' (using password: YES)")
     96}}}
     97There are a few possibilities:
     98 1. Try first to login on the command-line using the user tracuser (mysql -p -h localhost -u tracuser)
     99 1. Created user is not yet used by MySQL (Login to the MySQL server(as root): mysql -p and type FLUSH PRIVILEGES;)
     100 1. The user is added but the host does not match in the mysql user table (I had this on my FreeBSD setup). mysql -p; use mysql; UPDATE user SET Host="localhost" WHERE User="tracuser"; FLUSH PRIVILEGES;)
     101
    100102
    101103== Conversion ==