473,382 Members | 1,349 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,382 software developers and data experts.

MySQL and Linux - dababase connection problem

When I installed MySQL (SuSE 9.0) and first started it, it
told me that I needed to set a password for
machine.domain.name. I tried following the directions, but
it would only setup a password for "localhost".

Is this normal?

I am having problems with software connecting to the database.
--
Jim Sabatke
Hire Me!! - See my resume at http://my.execpc.com/~jsabatke

Do not meddle in the affairs of Dragons, for you are crunchy
and good with ketchup.
Jul 20 '05 #1
14 2173
Attempting to reach the Kolinahr, Jim Sabatke wrote:
When I installed MySQL (SuSE 9.0) and first started it, it told me that I
needed to set a password for machine.domain.name. I tried following the
directions, but it would only setup a password for "localhost".

Is this normal?

I am having problems with software connecting to the database.


In case of trouble, read the book of instructions.

www.mysql.com

/Andreas
--
#Peace and long life ...
Registeret Linux user #292411
Jul 20 '05 #2
Attempting to reach the Kolinahr, Jim Sabatke wrote:
When I installed MySQL (SuSE 9.0) and first started it, it told me that I
needed to set a password for machine.domain.name. I tried following the
directions, but it would only setup a password for "localhost".

Is this normal?

I am having problems with software connecting to the database.


In case of trouble, read the book of instructions.

www.mysql.com

/Andreas
--
#Peace and long life ...
Registeret Linux user #292411
Jul 20 '05 #3
Andreas Paasch wrote:
Attempting to reach the Kolinahr, Jim Sabatke wrote:

When I installed MySQL (SuSE 9.0) and first started it, it told me that I
needed to set a password for machine.domain.name. I tried following the
directions, but it would only setup a password for "localhost".

Is this normal?

I am having problems with software connecting to the database.

In case of trouble, read the book of instructions.

www.mysql.com

/Andreas


I've been doing that, over and over.

--
Jim Sabatke
Hire Me!! - See my resume at http://my.execpc.com/~jsabatke

Do not meddle in the affairs of Dragons, for you are crunchy
and good with ketchup.
Jul 20 '05 #4
Andreas Paasch wrote:
Attempting to reach the Kolinahr, Jim Sabatke wrote:

When I installed MySQL (SuSE 9.0) and first started it, it told me that I
needed to set a password for machine.domain.name. I tried following the
directions, but it would only setup a password for "localhost".

Is this normal?

I am having problems with software connecting to the database.

In case of trouble, read the book of instructions.

www.mysql.com

/Andreas


I've been doing that, over and over.

--
Jim Sabatke
Hire Me!! - See my resume at http://my.execpc.com/~jsabatke

Do not meddle in the affairs of Dragons, for you are crunchy
and good with ketchup.
Jul 20 '05 #5
Jim Sabatke wrote:
I am having problems with software connecting to the database.


Information about what you did, and what was the error message would
help people to answer.
Jul 20 '05 #6
Jim Sabatke wrote:
I am having problems with software connecting to the database.


Information about what you did, and what was the error message would
help people to answer.
Jul 20 '05 #7
Aggro wrote:
Jim Sabatke wrote:
I am having problems with software connecting to the database.

Information about what you did, and what was the error message would
help people to answer.


I know it would be, but I don't have much. Here's what I did:

1. Installed MySQL and had it working.
2. Had some database problems I couldn't resolve. This
involved Posfix and Cyrus.
3. Finally gave up and uninstalled MySQL
4. Deleted the MySQL database files.
5. Reinstalled MySQL
6. Started MySQL
- Got a normal message to set the root user, and the
root yoda (my host name).
- root password set fine.
- root yoda password would not set. Got an error that
the database could not be accessed by the host.
- only "localhost" is valid for access

Is this normal? I'm having application problems of various
kinds, and the errors are application specific.

I'm not expecting Postfix/Cyrus support here. I know lots
of people have had problems getting them working with MySQL
though.

--
Jim Sabatke
Hire Me!! - See my resume at http://my.execpc.com/~jsabatke

Do not meddle in the affairs of Dragons, for you are crunchy
and good with ketchup.
Jul 20 '05 #8
Aggro wrote:
Jim Sabatke wrote:
I am having problems with software connecting to the database.

Information about what you did, and what was the error message would
help people to answer.


I know it would be, but I don't have much. Here's what I did:

1. Installed MySQL and had it working.
2. Had some database problems I couldn't resolve. This
involved Posfix and Cyrus.
3. Finally gave up and uninstalled MySQL
4. Deleted the MySQL database files.
5. Reinstalled MySQL
6. Started MySQL
- Got a normal message to set the root user, and the
root yoda (my host name).
- root password set fine.
- root yoda password would not set. Got an error that
the database could not be accessed by the host.
- only "localhost" is valid for access

Is this normal? I'm having application problems of various
kinds, and the errors are application specific.

I'm not expecting Postfix/Cyrus support here. I know lots
of people have had problems getting them working with MySQL
though.

--
Jim Sabatke
Hire Me!! - See my resume at http://my.execpc.com/~jsabatke

Do not meddle in the affairs of Dragons, for you are crunchy
and good with ketchup.
Jul 20 '05 #9
Jim Sabatke wrote:
- root yoda password would not set. Got an error that the database
could not be accessed by the host.
- only "localhost" is valid for access


How did you set local and remote passwords? Did you use commandline
tools(if so, what were the commands you used) or some GUI tools?
Jul 20 '05 #10
Jim Sabatke wrote:
- root yoda password would not set. Got an error that the database
could not be accessed by the host.
- only "localhost" is valid for access


How did you set local and remote passwords? Did you use commandline
tools(if so, what were the commands you used) or some GUI tools?
Jul 20 '05 #11
Aggro wrote:
Jim Sabatke wrote:
- root yoda password would not set. Got an error that the database
could not be accessed by the host.
- only "localhost" is valid for access

How did you set local and remote passwords? Did you use commandline
tools(if so, what were the commands you used) or some GUI tools?


I used the command line utilities specified by the message
on first starting mysql. It was a text message that was
lost. I feel like an idiot for not copying and pasting it
somewhere, but I wasn't expecting problems.

--
Jim Sabatke
Hire Me!! - See my resume at http://my.execpc.com/~jsabatke

Do not meddle in the affairs of Dragons, for you are crunchy
and good with ketchup.
Jul 20 '05 #12
Aggro wrote:
Jim Sabatke wrote:
- root yoda password would not set. Got an error that the database
could not be accessed by the host.
- only "localhost" is valid for access

How did you set local and remote passwords? Did you use commandline
tools(if so, what were the commands you used) or some GUI tools?


I used the command line utilities specified by the message
on first starting mysql. It was a text message that was
lost. I feel like an idiot for not copying and pasting it
somewhere, but I wasn't expecting problems.

--
Jim Sabatke
Hire Me!! - See my resume at http://my.execpc.com/~jsabatke

Do not meddle in the affairs of Dragons, for you are crunchy
and good with ketchup.
Jul 20 '05 #13
Jim Sabatke wrote:
I used the command line utilities specified by the message on first
starting mysql. It was a text message that was lost. I feel like an
idiot for not copying and pasting it somewhere, but I wasn't expecting
problems.


Ok, so better start from beginning. Since you have a working root
password, I assume you know how to log in into mysql as root. If not,
then just try typing:
mysql -u root -p
[ Type in the password ]

Next, here is something for you to read:

http://dev.mysql.com/doc/mysql/en/GRANT.html

And try giving some commands like:
GRANT ALL PRIVILEGES ON test.* TO 'root'@'localhost' IDENTIFIED BY
'password here';

Where you replace the test with the database name you wish to connect
to, and localhost with the ip (or name) of the computer _from where_ you
wish to connect to this server. I also suggest you not to allow remote
root access at all, if that is possible (for security reasons), instead
create another user for your needs.

I don't know how you are planning to use the database, so this is about
all I can tell.
Jul 20 '05 #14
Jim Sabatke wrote:
I used the command line utilities specified by the message on first
starting mysql. It was a text message that was lost. I feel like an
idiot for not copying and pasting it somewhere, but I wasn't expecting
problems.


Ok, so better start from beginning. Since you have a working root
password, I assume you know how to log in into mysql as root. If not,
then just try typing:
mysql -u root -p
[ Type in the password ]

Next, here is something for you to read:

http://dev.mysql.com/doc/mysql/en/GRANT.html

And try giving some commands like:
GRANT ALL PRIVILEGES ON test.* TO 'root'@'localhost' IDENTIFIED BY
'password here';

Where you replace the test with the database name you wish to connect
to, and localhost with the ip (or name) of the computer _from where_ you
wish to connect to this server. I also suggest you not to allow remote
root access at all, if that is possible (for security reasons), instead
create another user for your needs.

I don't know how you are planning to use the database, so this is about
all I can tell.
Jul 20 '05 #15

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

2
by: francescomoi | last post by:
Hi. I'm trying to build 'MySQL-python-1.2.0' on my Linux FC2: ---------------------------------- # export PATH=$PATH:/usr/local/mysql/bin/ # export mysqlclient=mysqlclient_r # python setup.py...
0
by: JL | last post by:
Platform: Linux Red Hat RHEL 3 (and red hat 9) Installed MySQL from source. As a matter of fact, installed all LAMPS from source, and the mysql socket file was arranged in a place other than...
0
by: Mike Chirico | last post by:
Interesting Things to Know about MySQL Mike Chirico (mchirico@users.sourceforge.net) Copyright (GPU Free Documentation License) 2004 Last Updated: Mon Jun 7 10:37:28 EDT 2004 The latest...
16
by: MLH | last post by:
Using MS Access, I have attached to MySQL servers in other states and other countries on the other side of my router. But when I use the MySQL ODBC driver 3.51 to connect to a MySQL server on my...
11
by: DJJ | last post by:
I am using the MySQL ODBC 3.51 driver to link three relatively small MySQL tables to a Microsoft Access 2003 database. I am finding that the data from the MySQL tables takes a hell of a long time...
15
by: Cheryl Langdon | last post by:
Hello everyone, This is my first attempt at getting help in this manner. Please forgive me if this is an inappropriate request. I suddenly find myself in urgent need of instruction on how to...
7
by: Ike | last post by:
Let's say I have a MySQL 4.12 database, opened to the internet on 111.111.111.111 allowing all incoming and outgoing ports. I have a username and password setup, which CAN connect to this database,...
1
by: erikcw | last post by:
Hi, I'm trying to insert some data from an XML file into MySQL. However, while importing one of the files, I got this error: Traceback (most recent call last): File "wa.py", line 304, in ?...
39
by: alex | last post by:
I've converted a latin1 database I have to utf8. The process has been: # mysqldump -u root -p --default-character-set=latin1 -c --insert-ignore --skip-set-charset mydb mydb.sql # iconv -f...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...
0
by: ryjfgjl | last post by:
In our work, we often need to import Excel data into databases (such as MySQL, SQL Server, Oracle) for data analysis and processing. Usually, we use database tools like Navicat or the Excel import...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.