<?xml version="1.0" encoding="utf-8"?>
<!DOCTYPE rss [<!ENTITY % HTMLlat1 PUBLIC "-//W3C//ENTITIES Latin 1 for XHTML//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml-lat1.ent">]>
<rss version="0.92" xml:base="http://www.ctunion.com">
<channel>
 <title>Computer Tech Union - Database Software</title>
 <link>http://www.ctunion.com/taxonomy/term/18/0</link>
 <description>PHP Database related</description>
 <language>en</language>
<item>
 <title>search and replace in mysql</title>
 <link>http://www.ctunion.com/node/621</link>
 <description>&lt;p&gt;can also be used in phpmyadmin&lt;/p&gt;
&lt;p&gt;UPDATE tablename SET tablefield = replace(tablefield, "findstring", "replacestring");&lt;/p&gt;
&lt;p&gt;very handy for changing all entries in one field to another value&lt;/p&gt;
</description>
 <pubDate>Wed, 13 Feb 2008 11:03:14 -0800</pubDate>
</item>
<item>
 <title>How to enable remote access to your mysql database (debian)</title>
 <link>http://www.ctunion.com/node/192</link>
 <description>&lt;p&gt;1) nano /etc/mysql/my.cnf&lt;br /&gt;
2) find&lt;br /&gt;
&lt;code &gt;&lt;br /&gt;
[mysqld]&lt;br /&gt;
user = mysql&lt;br /&gt;
pid-file = /var/run/mysqld/mysqld.pid&lt;br /&gt;
socket = /var/run/mysqld/mysqld.sock&lt;br /&gt;
port = 3306&lt;br /&gt;
basedir = /usr&lt;br /&gt;
datadir = /var/lib/mysql&lt;br /&gt;
tmpdir = /tmp&lt;br /&gt;
language = /usr/share/mysql/English&lt;br /&gt;
bind-address = 65.55.55.2&lt;br /&gt;
&lt;/code&gt;&lt;br /&gt;
3) the bind address will initially say localhost... change it to be your ipaddress of the server.&lt;br /&gt;
4) /etc/init.d/mysql restart&lt;br /&gt;
5) modify the permissions in mysql to allow remote users to log in.  &lt;/p&gt;
&lt;p&gt;thats it your done.&lt;/p&gt;
</description>
 <pubDate>Fri, 06 Apr 2007 14:22:30 -0700</pubDate>
</item>
<item>
 <title>how to repair a damaged mysql table</title>
 <link>http://www.ctunion.com/node/46</link>
 <description>&lt;p&gt;Just 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...&lt;/p&gt;
&lt;p&gt;1) log on to the linux console&lt;/p&gt;
&lt;p&gt;2) restart the mysql server&lt;br /&gt;
&lt;code &gt;&lt;br /&gt;
     /etc/init.d/mysqld restart&lt;br /&gt;
&lt;/code&gt;&lt;br /&gt;
(this works on debian)&lt;/p&gt;
&lt;p&gt;3) connect to the sql server&lt;br /&gt;
&lt;code &gt;&lt;br /&gt;
    mysql -u=root -p&lt;br /&gt;
&lt;/code&gt;&lt;br /&gt;
(note root is the root user for mysql)&lt;/p&gt;
&lt;p&gt;4)&lt;br /&gt;
&lt;code &gt;&lt;br /&gt;
&lt;strong &gt;mysql&amp;gt; show databases;&lt;/strong&gt;&lt;/p&gt;
</description>
 <pubDate>Sun, 30 Oct 2005 19:19:38 -0800</pubDate>
</item>
</channel>
</rss>
