![]() |
![]() |
![]() |
|||||
![]() |
![]() |
![]() |
![]() |
![]() |
|||
| Welcome
to Tech Support Forum home to more then 136,000 problems solved. Issues
have included: Spyware, Malware, Virus Issues, Windows, Microsoft,
Linux, Networking, Security, Hardware, and Gaming Getting your
problem solved is as easy as: 1. Registering for a free account 2. Asking your question 3. Receiving an answer Registered members: * See fewer ads. * And much more..
|
| Want to know how to post a question? click here | Having problems with spyware and pop-ups? First Steps |
|
|||||||
| Programming A discussion forum for programs and programming used in tech-related businesses. |
![]() |
|
|
LinkBack | Thread Tools |
|
|
#1 (permalink) |
|
Web Design / Development
Join Date: Oct 2006
Location: Richmond, B.C.; Canada
Posts: 1,384
OS: Windows XP [Version 5.1.2600] SP3 | Ubuntu Jaunty Jackalope | Windows 7 BETA
|
Problem with Open-Source Python with MySQL Program
I am having a small problem with an open-source veterinary management software. The compiled win32exe, linux tarball, and source code are available here: http://sourceforge.net/project/showf...kage_id=203713
The software is written in Python, and uses MySQL tables to store information. The problem is, somehow the default password was changed and I want to know the best way to: (a) delete the password so I can put in my own, or (b) re-set the default password. I was able to use this software last night with no problems, this issue arose when I tried to open it this morning. I have posted on the project forums, but since the last reply from the project admin was a while ago, I am not hopeful. I have been bashing my head against the wall for most of the day, so any assistance is appreciated.
__________________
![]() Validate your Markup Validate your CSS Notepad++ Please use [html], [php], and [code] when posting code or markup. I do not help by Private Message or e-mail. If for some reason I have over-looked a reply to a thread that I have previously replied to, then send me a message. Last edited by dm01; 05-28-2009 at 12:14 AM. Reason: spleling |
|
|
|
| Important Information |
|
Join the #1 Tech Support Forum Today - It's Totally Free!
TechSupportForum.com is a leading support website for your computer needs. We offer free, friendly and personalized computer support. Why pay to have your computer fixed when you can do it for free. Join TechSupportforum.com Today - Click Here |
|
|
#2 (permalink) |
|
Design Team Member
Join Date: Jul 2007
Location: Coventry, UK
Posts: 1,854
OS: Vista, various linux distros
|
Re: Problem with Open-Source Python with MySQL Program
Hey, it runs of of your localhost's mySQL server, so the easiest way is just through a mysql console...
I went and ran the situation on my own pc: - Opened Evette, went to Staff->Edit Users->Changed pass, closed. - Opened CMD, i have mysql in my path variable so you'd have to find the full path to mysql: Code:
[path to mysql]/mysql.exe -u root - then in mysql the code goes something like: Code:
mysql> use evette Database changed mysql> UPDATE user SET Password="newPass" WHERE ID=1; Query OK, 1 row affected (0.00 sec) Rows matched: 1 Changed: 1 Warnings: 0 But that's the easiest way to go about it i think. Cheers, Jamey Last edited by jamiemac2005; 05-28-2009 at 04:12 AM. |
|
|
|
|
|
#3 (permalink) |
|
Web Design / Development
Join Date: Oct 2006
Location: Richmond, B.C.; Canada
Posts: 1,384
OS: Windows XP [Version 5.1.2600] SP3 | Ubuntu Jaunty Jackalope | Windows 7 BETA
|
Re: Problem with Open-Source Python with MySQL Program
Er, it spewed this back in my face:
Code:
Traceback (most recent call last): File "launch.py", line 165, in ButtonPressed File "launch.py", line 178, in LogIn File "db.pyc", line 155, in SendSQL File "MySQLdb\cursors.pyc", line 166, in execute File "MySQLdb\connections.pyc", line 35, in defaulterrorhandler _mysql_exceptions.ProgrammingError: (1064, 'You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near \'newPass""\' at line 1')
__________________
![]() Validate your Markup Validate your CSS Notepad++ Please use [html], [php], and [code] when posting code or markup. I do not help by Private Message or e-mail. If for some reason I have over-looked a reply to a thread that I have previously replied to, then send me a message. |
|
|
|
|
|
#4 (permalink) |
|
Design Team Member
Join Date: Jul 2007
Location: Coventry, UK
Posts: 1,854
OS: Vista, various linux distros
|
Re: Problem with Open-Source Python with MySQL Program
\'newPass""\'
What order were the quotes in when you input the sql? (that might have been the problem, but godknows). It should work. Cheers, Jamey |
|
|
|
|
|
#5 (permalink) |
|
Web Design / Development
Join Date: Oct 2006
Location: Richmond, B.C.; Canada
Posts: 1,384
OS: Windows XP [Version 5.1.2600] SP3 | Ubuntu Jaunty Jackalope | Windows 7 BETA
|
Re: Problem with Open-Source Python with MySQL Program
Now I've effed it. . . there doesn't seem to be any connection from Evette to the database, even though MySQL is running.
The "username" field is blank, and it won't accept the password anymore. I have no idea what happened, but I'm sure it's my fault :).
__________________
![]() Validate your Markup Validate your CSS Notepad++ Please use [html], [php], and [code] when posting code or markup. I do not help by Private Message or e-mail. If for some reason I have over-looked a reply to a thread that I have previously replied to, then send me a message. |
|
|
|
|
|
#6 (permalink) |
|
Design Team Member
Join Date: Jul 2007
Location: Coventry, UK
Posts: 1,854
OS: Vista, various linux distros
|
Re: Problem with Open-Source Python with MySQL Program
Haha, godknows, in mysql what does "show databases" return?... Can you not just re-install? ("drop database evette" then re-install that is, so that you don't have the same pw problem).
Cheers, Jamey |
|
|
|
|
|
#7 (permalink) |
|
Web Design / Development
Join Date: Oct 2006
Location: Richmond, B.C.; Canada
Posts: 1,384
OS: Windows XP [Version 5.1.2600] SP3 | Ubuntu Jaunty Jackalope | Windows 7 BETA
|
Re: Problem with Open-Source Python with MySQL Program
Show databases does nothing.
drop database evette does nothing. I think something's wrong, or else I'm being simple.
__________________
![]() Validate your Markup Validate your CSS Notepad++ Please use [html], [php], and [code] when posting code or markup. I do not help by Private Message or e-mail. If for some reason I have over-looked a reply to a thread that I have previously replied to, then send me a message. |
|
|
|
|
|
#8 (permalink) |
|
Design Team Member
Join Date: Jul 2007
Location: Coventry, UK
Posts: 1,854
OS: Vista, various linux distros
|
Re: Problem with Open-Source Python with MySQL Program
That sounds like your mysql server has killed itself, restart it(the service). Both should return an output whether they work or not.
|
|
|
|
|
|
#9 (permalink) |
|
Web Design / Development
Join Date: Oct 2006
Location: Richmond, B.C.; Canada
Posts: 1,384
OS: Windows XP [Version 5.1.2600] SP3 | Ubuntu Jaunty Jackalope | Windows 7 BETA
|
Re: Problem with Open-Source Python with MySQL Program
Better this time. Instead of producing nothing, the stupid console gives me a ->, as if it wants more information.
__________________
![]() Validate your Markup Validate your CSS Notepad++ Please use [html], [php], and [code] when posting code or markup. I do not help by Private Message or e-mail. If for some reason I have over-looked a reply to a thread that I have previously replied to, then send me a message. |
|
|
|
|
|
#11 (permalink) |
|
Web Design / Development
Join Date: Oct 2006
Location: Richmond, B.C.; Canada
Posts: 1,384
OS: Windows XP [Version 5.1.2600] SP3 | Ubuntu Jaunty Jackalope | Windows 7 BETA
|
Re: Problem with Open-Source Python with MySQL Program
Er, right. I knew that.
Yay! It works now, I think. Some more editing of different tables may be necessary, but I think I can handle that now :). Thank you very much!
__________________
![]() Validate your Markup Validate your CSS Notepad++ Please use [html], [php], and [code] when posting code or markup. I do not help by Private Message or e-mail. If for some reason I have over-looked a reply to a thread that I have previously replied to, then send me a message. |
|
|
|
![]() |
| Thread Tools | |
|
|