On Tuesday, July 20, 2010 10:41:35 martin wrote:
[...]
Driver = QMYSQL, Host = localhost, User = martinHwelsh, Database =
KMyMoney
Driver Error: QMYSQL: Unable to connect
Database Error No 2002: Can't connect to local MySQL server through
socket '/var/run/mysqld/mysqld.sock' (2)
Text: Can't connect to local MySQL server through socket
'/var/run/mysqld/mysqld.sock' (2) QMYSQL: Unable to connect
Error type 1
Error type 0 "
Three things here:
1) It looks like the MySQL daemon is not running, or there is a permissions
problem on the socket. The first is more likely than the latter.
2) The user "kmymoney" has all the privileges, but the user is "martinHwelsh".
Is there such a user in MySQL? If you change that to "kmymoney" what happens?
3) As Tony mentioned before, the usernames and database names are case
sensitive. The database name is "KMyMoney", so the username should probably be
the same.
[...]
This is the operating system that is used mainly it is Gnome based
which allows the use of KDE 3 for a Knoda/Mysql which is KDE3 only.
LinuxMint
Same points as above for this computer.
[...]
Going back to the suggestions in the mail;
Using the same notation.
0). Mysql Server version: 5.1.41-3ubuntu12.3 (Ubuntu) is installed and
running.
1). Database kmymoney has been created. (No tables)
2). The user name for mysql is the same as the username in the Open
Database and Save as Database boxes in the control panels revealed
when you select the functions.
3). All privileges have been granted to the user/username.
Which user is meant here, "martin" or "KMyMoney"?
4). Initially I pressed the OK buttons only and no tables were
created. The two error messages shown above were created.
I still think this is related to a username issue.
5). Selecting Generate SQL produces a SQL file and I loaded this
into the kmymoney database producing 15 tables.
How did you load it into the database? It may be a good way to track down what
is wrong. Also, as Tony mentioned, this should be automatic for MySQL. If step
4 had succeeded, this step should never have been reached.
6). Selecting save as database produced the following error message;
"Error in function createDatabase : Error in create database KMyMoney;
do you have create permissions?
Driver = QMYSQL3, Host = localhost, User = martin, Database = KMyMoney
Executed: CREATE DATABASE KMyMoney;
Query error No -1: " - again!
KMM did not detect that the database exists, so it tried to create it. It
tried to do that by logging in as "martin", then issuing the command above. It
failed because either the database already exists (as you said), or the user
"martin" does not have privileges to create a database.
I am not a Linux expert indeed in this instance I will be flattered if
you describe me as a Linux user so it is probable that is my fingers
that are the problem. Please reply in the proposed handbook revision
language.
I will be happy to have a go with Sqlite and Postgresql but I have not
used Postgresql before.
It is meant to run on MySQL, as well. We have some other users doing just
that, including Tony, the other database developer on the project.
Sorry this is not in the new handbook language. We need to update the section
on "User name and password".
What is currently there is correct, but potentially misleading to a new user.
It says to contact your DBA to get the login info, and the sample image lists
the username of the logged in user. Since you are the DBA on your own machine
(whether you want to be or not), you have to make sure you have the username
correct. In this case, it is the db user that you granted all privileges to:
"KMyMoney".
We should probably expand the section to include reasonable defaults for a new
user, while still keeping the data relevant for a more advanced user. For
instance, my database is on a desktop computer that acts as a
print/email/file/media server for my home network. I normally access it from a
laptop in another room (with a VPN over wifi).
--
Thanks,
Fernando Vilas
fvilas-***@public.gmane.org