Computing.Net > Forums > Linux > Samba + MySQL + W2K + RH7.1

Computer Problems? Computing.Net has over 1,000,000 posts about all things technology related! Over 90% answered within 24 hours! Click here to start participating now! Also, be sure to check out the New User Guide.

Samba + MySQL + W2K + RH7.1

Reply to Message Icon

Name: Jonny
Date: February 6, 2002 at 15:52:10 Pacific
Comment:

I was able to mount Windows 2000 server shared folder with RH 7.1 by the following command
# mount –t smbfs –o username=mysql,password=xxx //server1/mydata /var/lib/mysql/nt
mydata is the shared folder on W2K server.

I can see files that originally stored in my shared folder ‘mydata’ by doing # ls –l /var/lib/mysql/nt

My have modified /dev/my.cnf
[mysqld]
Datadir=/var/lib/mysql/nt
[mysql.server]
user=mysql

I also did the following steps on MySQL
# mysql_install_db
# /usr/bin/safe_mysqld start
mysql>insert into host (host,db,Select_priv,Insert_priv,Update_priv,Delete_priv,Create_priv,Drop_priv) values('localhost',’%’,’Y’,’Y’,’Y’,’Y’,’Y’,’Y’);
mysql> insert into user(host,user,password) values(‘localhost’,’mysql’,password(‘mypasswd’));

mysql>insert into db (host,db,user,Select_priv,Insert_priv,Update_priv,Delete_priv,Create_priv,Drop_priv) values( 'localhost','nt','mysql,'Y','Y','Y','Y','Y','Y');
I have two questions:

1. The owner and group of my database directory at var/lib/mysql/nt showing root root, even I changed it to mysql mysql before starting samba. How to change the owner and group of those files to mysql?
2. I got “ERROR 1045: Access denied for user: ‘root@localhost’ (Using password: NO)” everytime when I want to use # mysql –u root
3. I also had the error of “/usr/libexec/mysqld: Too many parameters” in the /var/log/mysqld.log file. How to solve this problem?

Please help me! Please tell me how to integrating Samba with MySQL!



Sponsored Link
Ads by Google

Response Number 1
Name: danny
Date: February 7, 2002 at 10:06:04 Pacific
Reply:

You have to specify the UID=mysql in mount. You may have more possibilities with smbmount instead of mount.

EX:
smbmount //server1/mydata /var/lib/mysql/nt -o username=mysql%password,uid=mysql


0

Response Number 2
Name: ronen
Date: February 8, 2002 at 03:18:30 Pacific
Reply:

try : chmod mysql file_name
chgrp mysql file_name


0

Sponsored Link
Ads by Google
Reply to Message Icon

Related Posts

See More







Post Locked

This post is quite old and has been locked from receiving new replies. Please create a new posting instead.


Go to Linux Forum Home


Sponsored links

Ads by Google


Results for: Samba + MySQL + W2K + RH7.1

ATI Radeon VE with RH7.1 & X-Windows www.computing.net/answers/linux/ati-radeon-ve-with-rh71-amp-xwindows/6810.html

RH7.1 Database www.computing.net/answers/linux/rh71-database/5141.html

Win98+RH7.1 Install www.computing.net/answers/linux/win98rh71-install/4598.html