<?xml version="1.0" encoding="UTF-8"?> <rss version="2.0" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:wfw="http://wellformedweb.org/CommentAPI/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:sy="http://purl.org/rss/1.0/modules/syndication/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" ><channel><title>PleskHacker &#187; data_bases</title> <atom:link href="http://pleskhacker.com/tag/data_bases/feed/" rel="self" type="application/rss+xml" /><link>http://pleskhacker.com</link> <description>Detailed documentation of the Plesk database</description> <lastBuildDate>Thu, 03 Jun 2010 13:00:52 +0000</lastBuildDate> <language>en</language> <sy:updatePeriod>hourly</sy:updatePeriod> <sy:updateFrequency>1</sy:updateFrequency> <generator>http://wordpress.org/?v=3.3.1</generator> <item><title>Find all databases and login credentials</title><link>http://pleskhacker.com/sql-queries/find-all-databases-and-login-credentials/</link> <comments>http://pleskhacker.com/sql-queries/find-all-databases-and-login-credentials/#comments</comments> <pubDate>Tue, 09 Dec 2008 01:18:53 +0000</pubDate> <dc:creator>major</dc:creator> <category><![CDATA[Database Queries]]></category> <category><![CDATA[MySQL Queries]]></category> <category><![CDATA[accounts]]></category> <category><![CDATA[databases]]></category> <category><![CDATA[data_bases]]></category> <category><![CDATA[domains]]></category><guid isPermaLink="false">http://pleskhacker.com/?p=308</guid> <description><![CDATA[If you need to list all of the MySQL databases managed by Plesk along with their corresponding domains and login credentials, you can use this handy query: SELECT domains.name AS domain_name, data_bases.name AS database_name, db_users.login, accounts.password FROM data_bases, db_users, domains, accounts WHERE data_bases.dom_id = domains.id AND db_users.db_id = data_bases.id AND db_users.account_id = accounts.id ORDER BY [...]]]></description> <content:encoded><![CDATA[<p>If you need to list all of the MySQL databases managed by Plesk along with their corresponding domains and login credentials, you can use this handy query:</p><div class="wp_syntax"><div class="code"><pre class="mysql" style="font-family:monospace;"><span style="color: #990099; font-weight: bold;">SELECT</span> domains.name <span style="color: #990099; font-weight: bold;">AS</span> domain_name<span style="color: #000033;">,</span>
data_bases.name <span style="color: #990099; font-weight: bold;">AS</span> database_name<span style="color: #000033;">,</span> db_users.login<span style="color: #000033;">,</span> accounts.<span style="color: #000099;">password</span>
<span style="color: #990099; font-weight: bold;">FROM</span> data_bases<span style="color: #000033;">,</span> db_users<span style="color: #000033;">,</span> domains<span style="color: #000033;">,</span> accounts
<span style="color: #990099; font-weight: bold;">WHERE</span> data_bases.dom_id <span style="color: #CC0099;">=</span> domains.id
<span style="color: #CC0099; font-weight: bold;">AND</span> db_users.db_id <span style="color: #CC0099;">=</span> data_bases.id
<span style="color: #CC0099; font-weight: bold;">AND</span> db_users.account_id <span style="color: #CC0099;">=</span> accounts.id
<span style="color: #990099; font-weight: bold;">ORDER BY</span> domain_name<span style="color: #000033;">;</span></pre></div></div><p>Thanks to Juan Carlos Lopez for the suggestion!</p> ]]></content:encoded> <wfw:commentRss>http://pleskhacker.com/sql-queries/find-all-databases-and-login-credentials/feed/</wfw:commentRss> <slash:comments>0</slash:comments> </item> <item><title>psa.db_users</title><link>http://pleskhacker.com/all-tables/psa_db_users/</link> <comments>http://pleskhacker.com/all-tables/psa_db_users/#comments</comments> <pubDate>Wed, 24 Sep 2008 02:58:10 +0000</pubDate> <dc:creator>major</dc:creator> <category><![CDATA[All Tables]]></category> <category><![CDATA[Databases]]></category> <category><![CDATA[accounts]]></category> <category><![CDATA[data_bases]]></category> <category><![CDATA[db_users]]></category><guid isPermaLink="false">http://pleskhacker.com/?p=193</guid> <description><![CDATA[Overview The db_users table contains the database users for the databases on the server. Column Descriptions id &#8211; primary key that is automatically incremented login &#8211; username for the database user account_id &#8211; links to id in accounts table db_id &#8211; links to id in data_bases table Table Structure CREATE TABLE `db_users` &#40; `id` int&#40;10&#41; [...]]]></description> <content:encoded><![CDATA[<p><strong><span style="text-decoration: underline;">Overview</span></strong><br /> The <code>db_users</code> table contains the database users for the databases on the server.</p><p><strong><span style="text-decoration: underline;">Column Descriptions</span></strong><br /> <strong>id</strong> &#8211; primary key that is automatically incremented<br /> <strong>login</strong> &#8211; username for the database user<br /> <strong>account_id</strong> &#8211; links to <code>id</code> in <code><a href="/all-tables/psa_accounts/">accounts</a></code> table<br /> <strong>db_id</strong> &#8211; links to <code>id</code> in <code><a href="/all-tables/psa_data_bases/">data_bases</a></code> table</p><p><strong><span style="text-decoration: underline;">Table Structure</span></strong></p><div class="wp_syntax"><div class="code"><pre class="mysql" style="font-family:monospace;"><span style="color: #990099; font-weight: bold;">CREATE</span> <span style="color: #990099; font-weight: bold;">TABLE</span> <span style="color: #008000;">`db<span style="color: #008080; font-weight: bold;">_</span>users`</span> <span style="color: #FF00FF;">&#40;</span>
 <span style="color: #008000;">`id`</span> <span style="color: #999900; font-weight: bold;">int</span><span style="color: #FF00FF;">&#40;</span><span style="color: #008080;">10</span><span style="color: #FF00FF;">&#41;</span> <span style="color: #FF9900; font-weight: bold;">unsigned</span> <span style="color: #CC0099; font-weight: bold;">NOT</span> <span style="color: #9900FF; font-weight: bold;">NULL</span> <span style="color: #FF9900; font-weight: bold;">auto_increment</span><span style="color: #000033;">,</span>
 <span style="color: #008000;">`login`</span> <span style="color: #999900; font-weight: bold;">varchar</span><span style="color: #FF00FF;">&#40;</span><span style="color: #008080;">16</span><span style="color: #FF00FF;">&#41;</span> character <span style="color: #990099; font-weight: bold;">set</span> <span style="color: #000099;">ascii</span> <span style="color: #CC0099; font-weight: bold;">collate</span> ascii_bin <span style="color: #CC0099; font-weight: bold;">NOT</span> <span style="color: #9900FF; font-weight: bold;">NULL</span> <span style="color: #990099; font-weight: bold;">default</span> <span style="color: #008000;">''</span><span style="color: #000033;">,</span>
 <span style="color: #008000;">`account<span style="color: #008080; font-weight: bold;">_</span>id`</span> <span style="color: #999900; font-weight: bold;">int</span><span style="color: #FF00FF;">&#40;</span><span style="color: #008080;">10</span><span style="color: #FF00FF;">&#41;</span> <span style="color: #FF9900; font-weight: bold;">unsigned</span> <span style="color: #CC0099; font-weight: bold;">NOT</span> <span style="color: #9900FF; font-weight: bold;">NULL</span> <span style="color: #990099; font-weight: bold;">default</span> <span style="color: #008000;">'0'</span><span style="color: #000033;">,</span>
 <span style="color: #008000;">`db<span style="color: #008080; font-weight: bold;">_</span>id`</span> <span style="color: #999900; font-weight: bold;">int</span><span style="color: #FF00FF;">&#40;</span><span style="color: #008080;">10</span><span style="color: #FF00FF;">&#41;</span> <span style="color: #FF9900; font-weight: bold;">unsigned</span> <span style="color: #CC0099; font-weight: bold;">NOT</span> <span style="color: #9900FF; font-weight: bold;">NULL</span> <span style="color: #990099; font-weight: bold;">default</span> <span style="color: #008000;">'0'</span><span style="color: #000033;">,</span>
 <span style="color: #990099; font-weight: bold;">PRIMARY KEY</span>  <span style="color: #FF00FF;">&#40;</span><span style="color: #008000;">`id`</span><span style="color: #FF00FF;">&#41;</span><span style="color: #000033;">,</span>
 <span style="color: #FF9900; font-weight: bold;">UNIQUE</span> <span style="color: #990099; font-weight: bold;">KEY</span> <span style="color: #008000;">`db<span style="color: #008080; font-weight: bold;">_</span>id`</span> <span style="color: #FF00FF;">&#40;</span><span style="color: #008000;">`db<span style="color: #008080; font-weight: bold;">_</span>id`</span><span style="color: #000033;">,</span><span style="color: #008000;">`login`</span><span style="color: #FF00FF;">&#41;</span><span style="color: #000033;">,</span>
 <span style="color: #990099; font-weight: bold;">KEY</span> <span style="color: #008000;">`account<span style="color: #008080; font-weight: bold;">_</span>id`</span> <span style="color: #FF00FF;">&#40;</span><span style="color: #008000;">`account<span style="color: #008080; font-weight: bold;">_</span>id`</span><span style="color: #FF00FF;">&#41;</span>
<span style="color: #FF00FF;">&#41;</span> <span style="color: #990099; font-weight: bold;">ENGINE</span><span style="color: #CC0099;">=</span><span style="color: #990099; font-weight: bold;">InnoDB</span> <span style="color: #FF9900; font-weight: bold;">AUTO_INCREMENT</span><span style="color: #CC0099;">=</span><span style="color: #008080;">102</span> <span style="color: #990099; font-weight: bold;">DEFAULT</span> <span style="color: #FF9900; font-weight: bold;">CHARSET</span><span style="color: #CC0099;">=</span>latin1</pre></div></div>]]></content:encoded> <wfw:commentRss>http://pleskhacker.com/all-tables/psa_db_users/feed/</wfw:commentRss> <slash:comments>0</slash:comments> </item> <item><title>psa.data_bases</title><link>http://pleskhacker.com/all-tables/psa_data_bases/</link> <comments>http://pleskhacker.com/all-tables/psa_data_bases/#comments</comments> <pubDate>Wed, 24 Sep 2008 02:51:29 +0000</pubDate> <dc:creator>major</dc:creator> <category><![CDATA[All Tables]]></category> <category><![CDATA[Databases]]></category> <category><![CDATA[databaseservers]]></category> <category><![CDATA[data_bases]]></category> <category><![CDATA[db_users]]></category> <category><![CDATA[domains]]></category><guid isPermaLink="false">http://pleskhacker.com/?p=187</guid> <description><![CDATA[Overview The data_bases table contains information about the databases stored on the server. Column Descriptions id &#8211; primary key that is automatically incremented name &#8211; database&#8217;s name type &#8211; can be mysql, mssql, postgresql dom_id &#8211; links to id in domains table db_server_id &#8211; links to id in DatabaseServers table default_user_id &#8211; links to id [...]]]></description> <content:encoded><![CDATA[<p><strong><span style="text-decoration: underline;">Overview</span></strong><br /> The <code>data_bases</code> table contains information about the databases stored on the server.</p><p><strong><span style="text-decoration: underline;">Column Descriptions</span></strong><br /> <strong>id</strong> &#8211; primary key that is automatically incremented<br /> <strong>name</strong> &#8211; database&#8217;s name<br /> <strong>type</strong> &#8211; can be <code>mysql</code>, <code>mssql</code>, <code>postgresql</code><br /> <strong>dom_id</strong> &#8211; links to <code>id</code> in <code>domains</code> table<br /> <strong>db_server_id</strong> &#8211; links to <code>id</code> in <code><a href="/all-tables/psa_databaseservers/">DatabaseServers</a></code> table<br /> <strong>default_user_id</strong> &#8211; links to <code>id</code> in <code><a href="/all-tables/psa_db_users/">db_users</a></code></p><p><strong><span style="text-decoration: underline;">Table Structure</span></strong></p><div class="wp_syntax"><div class="code"><pre class="mysql" style="font-family:monospace;"><span style="color: #990099; font-weight: bold;">CREATE</span> <span style="color: #990099; font-weight: bold;">TABLE</span> <span style="color: #008000;">`data<span style="color: #008080; font-weight: bold;">_</span>bases`</span> <span style="color: #FF00FF;">&#40;</span>
 <span style="color: #008000;">`id`</span> <span style="color: #999900; font-weight: bold;">int</span><span style="color: #FF00FF;">&#40;</span><span style="color: #008080;">10</span><span style="color: #FF00FF;">&#41;</span> <span style="color: #FF9900; font-weight: bold;">unsigned</span> <span style="color: #CC0099; font-weight: bold;">NOT</span> <span style="color: #9900FF; font-weight: bold;">NULL</span> <span style="color: #FF9900; font-weight: bold;">auto_increment</span><span style="color: #000033;">,</span>
 <span style="color: #008000;">`name`</span> <span style="color: #999900; font-weight: bold;">varchar</span><span style="color: #FF00FF;">&#40;</span><span style="color: #008080;">63</span><span style="color: #FF00FF;">&#41;</span> character <span style="color: #990099; font-weight: bold;">set</span> <span style="color: #000099;">ascii</span> <span style="color: #CC0099; font-weight: bold;">collate</span> ascii_bin <span style="color: #CC0099; font-weight: bold;">NOT</span> <span style="color: #9900FF; font-weight: bold;">NULL</span> <span style="color: #990099; font-weight: bold;">default</span> <span style="color: #008000;">''</span><span style="color: #000033;">,</span>
 <span style="color: #008000;">`type`</span> <span style="color: #999900; font-weight: bold;">enum</span><span style="color: #FF00FF;">&#40;</span><span style="color: #008000;">'mysql'</span><span style="color: #000033;">,</span><span style="color: #008000;">'postgresql'</span><span style="color: #000033;">,</span><span style="color: #008000;">'mssql'</span><span style="color: #FF00FF;">&#41;</span> <span style="color: #CC0099; font-weight: bold;">NOT</span> <span style="color: #9900FF; font-weight: bold;">NULL</span> <span style="color: #990099; font-weight: bold;">default</span> <span style="color: #008000;">'mysql'</span><span style="color: #000033;">,</span>
 <span style="color: #008000;">`dom<span style="color: #008080; font-weight: bold;">_</span>id`</span> <span style="color: #999900; font-weight: bold;">int</span><span style="color: #FF00FF;">&#40;</span><span style="color: #008080;">10</span><span style="color: #FF00FF;">&#41;</span> <span style="color: #FF9900; font-weight: bold;">unsigned</span> <span style="color: #CC0099; font-weight: bold;">NOT</span> <span style="color: #9900FF; font-weight: bold;">NULL</span> <span style="color: #990099; font-weight: bold;">default</span> <span style="color: #008000;">'0'</span><span style="color: #000033;">,</span>
 <span style="color: #008000;">`db<span style="color: #008080; font-weight: bold;">_</span>server<span style="color: #008080; font-weight: bold;">_</span>id`</span> <span style="color: #999900; font-weight: bold;">int</span><span style="color: #FF00FF;">&#40;</span><span style="color: #008080;">10</span><span style="color: #FF00FF;">&#41;</span> <span style="color: #FF9900; font-weight: bold;">unsigned</span> <span style="color: #CC0099; font-weight: bold;">NOT</span> <span style="color: #9900FF; font-weight: bold;">NULL</span> <span style="color: #990099; font-weight: bold;">default</span> <span style="color: #008000;">'0'</span><span style="color: #000033;">,</span>
 <span style="color: #008000;">`default<span style="color: #008080; font-weight: bold;">_</span>user<span style="color: #008080; font-weight: bold;">_</span>id`</span> <span style="color: #999900; font-weight: bold;">int</span><span style="color: #FF00FF;">&#40;</span><span style="color: #008080;">10</span><span style="color: #FF00FF;">&#41;</span> <span style="color: #FF9900; font-weight: bold;">unsigned</span> <span style="color: #990099; font-weight: bold;">default</span> <span style="color: #9900FF; font-weight: bold;">NULL</span><span style="color: #000033;">,</span>
 <span style="color: #990099; font-weight: bold;">PRIMARY KEY</span>  <span style="color: #FF00FF;">&#40;</span><span style="color: #008000;">`id`</span><span style="color: #FF00FF;">&#41;</span><span style="color: #000033;">,</span>
 <span style="color: #FF9900; font-weight: bold;">UNIQUE</span> <span style="color: #990099; font-weight: bold;">KEY</span> <span style="color: #008000;">`name`</span> <span style="color: #FF00FF;">&#40;</span><span style="color: #008000;">`name`</span><span style="color: #000033;">,</span><span style="color: #008000;">`db<span style="color: #008080; font-weight: bold;">_</span>server<span style="color: #008080; font-weight: bold;">_</span>id`</span><span style="color: #FF00FF;">&#41;</span><span style="color: #000033;">,</span>
 <span style="color: #990099; font-weight: bold;">KEY</span> <span style="color: #008000;">`dom<span style="color: #008080; font-weight: bold;">_</span>id`</span> <span style="color: #FF00FF;">&#40;</span><span style="color: #008000;">`dom<span style="color: #008080; font-weight: bold;">_</span>id`</span><span style="color: #FF00FF;">&#41;</span><span style="color: #000033;">,</span>
 <span style="color: #990099; font-weight: bold;">KEY</span> <span style="color: #008000;">`db<span style="color: #008080; font-weight: bold;">_</span>server<span style="color: #008080; font-weight: bold;">_</span>id`</span> <span style="color: #FF00FF;">&#40;</span><span style="color: #008000;">`db<span style="color: #008080; font-weight: bold;">_</span>server<span style="color: #008080; font-weight: bold;">_</span>id`</span><span style="color: #FF00FF;">&#41;</span>
<span style="color: #FF00FF;">&#41;</span> <span style="color: #990099; font-weight: bold;">ENGINE</span><span style="color: #CC0099;">=</span><span style="color: #990099; font-weight: bold;">InnoDB</span> <span style="color: #FF9900; font-weight: bold;">AUTO_INCREMENT</span><span style="color: #CC0099;">=</span><span style="color: #008080;">103</span> <span style="color: #990099; font-weight: bold;">DEFAULT</span> <span style="color: #FF9900; font-weight: bold;">CHARSET</span><span style="color: #CC0099;">=</span>latin1</pre></div></div>]]></content:encoded> <wfw:commentRss>http://pleskhacker.com/all-tables/psa_data_bases/feed/</wfw:commentRss> <slash:comments>0</slash:comments> </item> </channel> </rss>
<!-- Performance optimized by W3 Total Cache. Learn more: http://www.w3-edge.com/wordpress-plugins/

Minified using disk: basic
Page Caching using disk: basic (User agent is rejected)
Database Caching using disk: basic
Object Caching 295/357 objects using disk: basic

Served from: pleskhacker.com @ 2012-02-06 06:53:23 -->
