in that case look in your package manager, you should be able to select and add various plugins and drivers, the sql among them.
in that case look in your package manager, you should be able to select and add various plugins and drivers, the sql among them.
==========================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.
i cant open the package manager
whenever i try to click on Add/Remove Software the following error comes :
Unable to retrieve software information. This could be caused by not having a network connection available.
Details : cannot find a valid baseurl for repo: core
i dont know what does this mean.
There are 10 kinds of people in this world. Those who understand binary, and those who dont.
regards
shamik
Find a proper rpm from your installation medium then. It'll probably be called qt3-plugin-mysql or something like that.
Your package manger is not configured.Unable to retrieve software information. This could be caused by not having a network connection available.
Details : cannot find a valid baseurl for repo: core
You should configure it (tell it where the spository is) - this is a package manager specific question /Fedora specific.
Try and see if you have any configuration/preferences or similar menu options in your package manager GUI front end, and see what comes up.
==========================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.
i have found following rpms from the installation media but i dont know which are of use so i m listing out all of them :
qt-3.3.6-13.i386.rpm
qt-config-3.3.6-13.i386.rpm
qt-designer-3.3.6-13.i386.rpm
qt-devel-3.3.6-13.i386.rpm
qt-devel-docs-3.3.6-13.i386.rpm
qt-MySQL-3.3.6-13.i386.rpm
qt-ODBC-3.3.6-13.i386.rpm
sqlite-devel-3.3.6-2.i386.rpm
mysql 5.0.22-2.1.i386.rpm
mysqlclient10-3.23.58-9.2.1.i386.rpm
mysqlclient10-devel-3.23.58-9.21.i386.rpm
mysqlclient14-devel-4.1.14-4.2.1.i386.rpm
mysqlConnector odbc-3.51.12.2.2.i386.rpm
mysql-devel-5.0.22-2.1.i386.rpm
mysql-server-5.0.22-2.1.i386.rpm
mysql-test-5.0.22-2.1.i386.rpm
these are the rpms i've found so far.
tell me now what to do with these??
There are 10 kinds of people in this world. Those who understand binary, and those who dont.
regards
shamik
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 localhostSo 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