Database Software
search and replace in mysql
Submitted by byo71 on Thu, 2008-02-14 00:03. Communications | Database Softwarecan also be used in phpmyadmin
UPDATE tablename SET tablefield = replace(tablefield, "findstring", "replacestring");
very handy for changing all entries in one field to another value
How to enable remote access to your mysql database (debian)
Submitted by admin on Sat, 2007-04-07 02:18. Communications | Database Software1) nano /etc/mysql/my.cnf
2) find
[mysqld]
user = mysql
pid-file = /var/run/mysqld/mysqld.pid
socket = /var/run/mysqld/mysqld.sock
port = 3306
basedir = /usr
datadir = /var/lib/mysql
tmpdir = /tmp
language = /usr/share/mysql/English
bind-address = 65.55.55.2
3) the bind address will initially say localhost... change it to be your ipaddress of the server.
4) /etc/init.d/mysql restart
5) modify the permissions in mysql to allow remote users to log in.
thats it your done.
how to repair a damaged mysql table
Submitted by admin on Mon, 2005-10-31 08:00. Communications | Database SoftwareJust a few minutes ago, i encounted a fairly common problem that would be hard to figure out without someone telling you how to do it. A server with mysql server quit working and we were getting die errors every time we tried to connect to the database. Wanna know how i fixed it?? well here you go...
1) log on to the linux console
2) restart the mysql server
/etc/init.d/mysqld restart
(this works on debian)
3) connect to the sql server
mysql -u=root -p
(note root is the root user for mysql)
4)
mysql> show databases;


Recent comments
30 weeks 19 hours ago
40 weeks 2 days ago
40 weeks 2 days ago
45 weeks 3 days ago
52 weeks 19 hours ago
1 year 2 weeks ago
1 year 14 weeks ago
1 year 14 weeks ago
1 year 15 weeks ago
1 year 29 weeks ago