Install qt-MySQL and its dependencies.
Install qt-MySQL and its dependencies.
i have installed two of the packages called
qt-mysql
qt-odbc
now i am getting the drivers in project->database connection
the two drivers i m getting are
QMYSQL3
QODBC
now i m having the same old problem of starting mysql
whenever i try to start it by typing mysql on the terminal it says
cant connect to.....through /var/lib/mysql/mysql.sock
the file there doesnt exists
neither the mysqld service is running.
even if i try to start the service by typing
/etc/init.d/mysqld start
on the terminal
it gives following error :
Initializing MySQL database : Neither host 'root' nor 'localhost' could be looked up with /usr/bin/resolveip'. Please configure the 'hostname' command to return a correct hostname. If yoiu want to solve this at a later stage restart this script with --force option
please tell me how to solve this problem
There are 10 kinds of people in this world. Those who understand binary, and those who dont.
regards
shamik
I think you should refer to some Fedora knowledge base on how to install mysqld properly. It's probable that you broke something as rpm scripts should have set up the database correctly during installation. As a temporary solution issue this command (as root):
echo "localhost" > /etc/hostname
and try to start the mysql daemon again.
the temporary solution doesnt work.
i tried as told :
echo "localhost" > /etc/hostname
and then
/etc/init.d/mysqld start
but still the error is same :
"
Initializing MySQL database : Neither host 'localhost.localdomain' nor 'localhost' could be looked up with /usr/bin/resolveip'. Please configure the 'hostname' command to return a correct hostname. If yoiu want to solve this at a later stage restart this script with --force option
"
i havent installed mysql myself.
it has been installed bydefault with FC-6 installation and i havent made any changes to it neither have i made any changes to environement variables or any system files.
on some other pc where a similar fresh installation of FC-6 is done, mysql is running fine. it is only on my pc that it gives this error.
is it possible to solve this problem or i have to uninstall all the rpms of mysql and re-install them? but then re-installing will raise the headache of Qt-MySql driver linking.
so i think it will be better if we make a little more effort and try to solve this problem rather than uninstalling and re-installing.
There are 10 kinds of people in this world. Those who understand binary, and those who dont.
regards
shamik
Is there a special reason why you are using Fedora?
I have used SUSE for years now, and its very friendly as far as standard installations go.
Yast (the package manager) offers you all you need as far as Qt goes.
I am sure that with SUSE you would have been up and running from the start.
You can install it in parallel and try.
==========================signature=============== ==================
S.O.L.I.D principles (use them!):
https://en.wikipedia.org/wiki/SOLID_...iented_design)
Do you write clean code? - if you are TDD'ing then maybe, if not, your not writing clean code.
Fedora should be OK for a beginner (although I didn't like it :P), it should have a package manager as well. But the problem here seems to be very weird... I never heard about a system that can't resolve localhost So let's take care of it:
echo "127.0.0.1 localhost" >> /etc/hosts
shamik (24th April 2007)
thankyou soooooo much
mysql is now running successfully.
u r a real Guru
There are 10 kinds of people in this world. Those who understand binary, and those who dont.
regards
shamik
Bookmarks