Create a new database with MySQL Workbench

Launch MySQL Workbench. On the left pane of the welcome window, choose a database to connect to under “Open Connection to Start Querying”. The query window will open. On its left pane, there is a section titled “Object Browser”, which shows the list of databases. (Side note: The terms “schema” and “database” are synonymous in … Read more

MySQL “WITH” clause

I’m trying to use MySQL to create a view with the “WITH” clause But it doesn’t seem like MySQL supports this. I thought this was pretty standard and I’m sure Oracle supports this. Is there anyway to force MySQL to use the “WITH” clause? I’ve tried it with the MyISAM and innoDB engine. Both of … Read more

SQL Query Where Field DOES NOT Contain $x

What kind of field is this? The IN operator cannot be used with a single field, but is meant to be used in subqueries or with predefined lists: If you are searching a string, go for the LIKE operator (but this will be slow): If you restrict it so that the string you are searching … Read more

Oracle client ORA-12541: TNS:no listener

You need to set oracle to listen on all ip addresses (by default, it listens only to localhost connections.) Step 1 – Edit listener.ora This file is located in: Windows: %ORACLE_HOME%\network\admin\listener.ora. Linux: $ORACLE_HOME/network/admin/listener.ora Replace localhost with 0.0.0.0 Step 2 – Restart Oracle services Windows: WinKey + rservices.msc Linux (CentOs):sudo systemctl restart oracle-xe