<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://wiki.csclub.uwaterloo.ca/api.php?action=feedcontributions&amp;feedformat=atom&amp;user=Ekfong</id>
	<title>CSCWiki - User contributions [en]</title>
	<link rel="self" type="application/atom+xml" href="https://wiki.csclub.uwaterloo.ca/api.php?action=feedcontributions&amp;feedformat=atom&amp;user=Ekfong"/>
	<link rel="alternate" type="text/html" href="https://wiki.csclub.uwaterloo.ca/Special:Contributions/Ekfong"/>
	<updated>2026-06-07T11:41:11Z</updated>
	<subtitle>User contributions</subtitle>
	<generator>MediaWiki 1.44.5</generator>
	<entry>
		<id>https://wiki.csclub.uwaterloo.ca/index.php?title=MySQL&amp;diff=4133</id>
		<title>MySQL</title>
		<link rel="alternate" type="text/html" href="https://wiki.csclub.uwaterloo.ca/index.php?title=MySQL&amp;diff=4133"/>
		<updated>2017-11-03T04:11:38Z</updated>

		<summary type="html">&lt;p&gt;Ekfong: /* Creating new MySQL databases */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;=== Creating new MySQL databases ===&lt;br /&gt;
&lt;br /&gt;
==== Using ceo ====&lt;br /&gt;
&lt;br /&gt;
Users can create their own MySQL databases through [[ceo]]. Users emailing syscom asking for a MySQL database should be directed to do so. The process is as follows:&lt;br /&gt;
&lt;br /&gt;
# SSH into any [[Machine_List|CSC machine]].&lt;br /&gt;
# Run &amp;lt;tt&amp;gt;ceo&amp;lt;/tt&amp;gt;.&lt;br /&gt;
# Select &amp;quot;Create MySQL database&amp;quot; and follow the instructions.&lt;br /&gt;
# Login info will be stored in &amp;lt;tt&amp;gt;ceo-mysql-info&amp;lt;/tt&amp;gt; in your home directory.&lt;br /&gt;
# You can now connect to the MySQL database (from [[Machine_List#caffeine|caffeine]] only).&lt;br /&gt;
&lt;br /&gt;
==== Manually ====&lt;br /&gt;
To create a MySQL database manually:&lt;br /&gt;
&lt;br /&gt;
 $ mysql -uroot -p&lt;br /&gt;
 Enter password: ******&lt;br /&gt;
 &lt;br /&gt;
 mysql&amp;gt; CREATE DATABASE someusername;&lt;br /&gt;
 Query OK, 1 row affected (0.00 sec)&lt;br /&gt;
 &lt;br /&gt;
 mysql&amp;gt; GRANT ALL PRIVILEGES ON someusername.* to someusername@localhost IDENTIFIED BY &#039;longrandompassword&#039;;&lt;br /&gt;
 Query OK, 0 rows affected (0.06 sec)&lt;br /&gt;
&lt;br /&gt;
For random passwords run &#039;makepasswd --chars 20&#039;. For the administrative password for the cluster see /users/sysadmin/passwords/mysql.&lt;br /&gt;
&lt;br /&gt;
Write a file (usually ~club/mysql) to the club&#039;s homedir readable only by them containing the following:&lt;br /&gt;
&lt;br /&gt;
 Username: clubuserid&lt;br /&gt;
 Password: longrandompassword&lt;br /&gt;
 Hostname: localhost&lt;br /&gt;
&lt;br /&gt;
Try not to send passwords via plaintext email.&lt;br /&gt;
&lt;br /&gt;
=== Replication ===&lt;br /&gt;
&lt;br /&gt;
See the history of this page for information on the previous replication setup.&lt;br /&gt;
&lt;br /&gt;
=== Deleting MySQL databases ===&lt;br /&gt;
&lt;br /&gt;
Users can delete their own MySQL databases. &lt;br /&gt;
&lt;br /&gt;
SSH into [[Machine_List#caffeine|caffeine]].&lt;br /&gt;
 mysql -u yourusernamehere -p&lt;br /&gt;
 Enter password: ******&lt;br /&gt;
 DROP DATABASE database name goes here&lt;br /&gt;
Login info and database name was created on database creation in &amp;lt;tt&amp;gt;ceo-mysql-info&amp;lt;/tt&amp;gt; in your home directory.&lt;br /&gt;
&lt;br /&gt;
[[Category:Software]]&lt;/div&gt;</summary>
		<author><name>Ekfong</name></author>
	</entry>
	<entry>
		<id>https://wiki.csclub.uwaterloo.ca/index.php?title=MySQL&amp;diff=4132</id>
		<title>MySQL</title>
		<link rel="alternate" type="text/html" href="https://wiki.csclub.uwaterloo.ca/index.php?title=MySQL&amp;diff=4132"/>
		<updated>2017-11-03T04:11:23Z</updated>

		<summary type="html">&lt;p&gt;Ekfong: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;=== Creating new MySQL databases ===&lt;br /&gt;
&lt;br /&gt;
==== Using ceo ====&lt;br /&gt;
&lt;br /&gt;
Users can create their own MySQL databases through [[ceo]]. Users emailing syscom asking for a MySQL database should be directed to do so. The process is as follows:&lt;br /&gt;
&lt;br /&gt;
# SSH into any [[Machine_List|CSC machine]].&lt;br /&gt;
# Run &amp;lt;tt&amp;gt;ceo&amp;lt;/tt&amp;gt;.&lt;br /&gt;
# Select &amp;quot;Create MySQL database&amp;quot; and follow the instructions.&lt;br /&gt;
# Login info will be stored in &amp;lt;tt&amp;gt;ceo-mysql-info&amp;lt;/tt&amp;gt; in your home directory.&lt;br /&gt;
# You can now connect to the MySQL database (from [[Machine_List#caffeine|caffeine]] only).&lt;br /&gt;
&lt;br /&gt;
==== Manually ====&lt;br /&gt;
To create a MySQL database manually:&lt;br /&gt;
&lt;br /&gt;
 $ mysql -uroot -p&lt;br /&gt;
 Enter password: ******&lt;br /&gt;
 &lt;br /&gt;
 mysql&amp;gt; CREATE DATABASE someusername;&lt;br /&gt;
 Query OK, 1 row affected (0.00 sec)&lt;br /&gt;
 &lt;br /&gt;
 mysql&amp;gt; GRANT ALL PRIVILEGES ON someusername.* to someusername@localhost IDENTIFIED BY &#039;longrandompassword&#039;;&lt;br /&gt;
 Query OK, 0 rows affected (0.06 sec)&lt;br /&gt;
&lt;br /&gt;
For random passwords run &#039;makepasswd --chars 20&#039;. For the administrative password for the cluster see /users/sysadmin/passwords/mysql.&lt;br /&gt;
&lt;br /&gt;
Write a file (usually ~club/mysql) to the club&#039;s homedir readable only by them containing the following:&lt;br /&gt;
&lt;br /&gt;
 Username: clubuserid&lt;br /&gt;
 Password: longrandompassword&lt;br /&gt;
 Hostname: localhost&lt;br /&gt;
&lt;br /&gt;
Try not to send passwords via plaintext email.&lt;br /&gt;
&lt;br /&gt;
=== Replication ===&lt;br /&gt;
&lt;br /&gt;
See the history of this page for information on the previous replication setup.&lt;br /&gt;
&lt;br /&gt;
=== Creating new MySQL databases ===&lt;br /&gt;
&lt;br /&gt;
Users can delete their own MySQL databases. &lt;br /&gt;
&lt;br /&gt;
SSH into [[Machine_List#caffeine|caffeine]].&lt;br /&gt;
 mysql -u yourusernamehere -p&lt;br /&gt;
 Enter password: ******&lt;br /&gt;
 DROP DATABASE database name goes here&lt;br /&gt;
Login info and database name was created on database creation in &amp;lt;tt&amp;gt;ceo-mysql-info&amp;lt;/tt&amp;gt; in your home directory.&lt;br /&gt;
&lt;br /&gt;
[[Category:Software]]&lt;/div&gt;</summary>
		<author><name>Ekfong</name></author>
	</entry>
</feed>