If I have a .php file with some Oracle code previously accessing a Oracle DB, but have setup a MySQL DB and want to edit the existing .php file to be compatible with the MySQL DB, how would I go about doing this? Do I have to manually go through each line and search for the equivalent MySQL statement, and if so, is there a library I can access that gives me the Oracle to MySQL equivalent command?
There is this website with a good compilation of tips and tools to help you out on this task: http://www.sqlines.com/oracle-to-mysql
i've looked into the tidesdk and found no way to query a local or external mysql database.
is there a way to connect to mysql and query a database/table, maybe via php?
thx for help
Currently there is no native way of accessing MySQL through TideSDK. You are welcome to help us create the native module for TideSDK to access MySQL.
I want to read the data from .CDB files which seems to be a SQLite 3 database files. I want to read data and handle it using PHP. Can you please suggest me a solution for that?
I tried ADOdb for PHP where the CDB format is not supporting in SQLite driver.
Thanks in advance.
Is there a way to export priviledges/users out of phpMyAdmin version 3.3.9? And yes, in such format that later those could be imported into a new installation.
It would be good if database relations would be kept and so on.
If phpMyAdmin cannot handle it, MySQL command line solution will work too.
Thanks in advance!
Basically you want to dump some tables from mysql database, like columns_priv,db,tables_priv and user
As far as I remember phpmyadmin have configuration option to hide some databases, but you can access it by typing ?db=mysql in url.
Background: I am more of a designer than a programmer, but have hacked templates for many open source CMS's (Drupal, Joomla, Wordpress)
I want to start from scratch in regards to the relations of php and a mysql database.
Lets assume I have a working database and php engine locally.
What would be my first step to connecting to my database and creating a table... (im happy to be led to an appropriate tutorial...)
Many of the tutorials I have seen start with basic php, but I would rather explore the connection between the db and the php.
This seems to be a pretty good tutorial:
http://www.freewebmasterhelp.com/tutorials/phpmysql
W3Schools has a big tutorial on both PHP and MySQL.
A useful tip is also to know that you can look up anything you need on the official PHP and MySQL support pages by going to
php.net/search-term-here (example)
mysql.com/search-term-here (example)
If you want to really get a leg up... see if you can get programs like CPanel and PHPMyAdmin.
PHPMyAdmin will give you a more familiar UI for database control and ease you into using mySQL.
There are two ways: start to learn SQL and create tables trough SQL or use PHPMyAdmin to administer the database. From then on you only have to learn how to get the data from the database.
PhpMyAdmin also displays the queries so you can analyze these.
Get into PDO . It's gonna be the next big php/mysql thing. A lot of sites have switched to it. It's simple and securer than conventional mysql_* . A good book (for beginners and to start you going) that is for sure not for production is Wicked Cool Php Scripts
You can also have a look at XAMPP, which makes installing everything required for PHP/MySQL a breeze. Linux, Windows? No problem.
Nettuts and theme forest blog have a nice video series on learning php. They have other series such as wordpress and are currently doing a series on code ignitor which both use php.
Install mySQL and look up basic tutorials on how to create a table, update, etc. Once you feel handy with that, install XAMPP lite, where you can start practicing PHP. Look up tutorials on how to use PHP to access your database. XAMPP also has phpMyAdmin, so you have a much easier interface to work with your databases.
It'd be good if you had some basic programming knowledge too-- it makes understanding PHP significantly easier.
This is an example on how you connect php to your database:
<?php
$dbh = new PDO('mysql:host=localhost;dbname=test', 'root', '');
?>
mysql = database driver
host = localhost or 127.0.0.1
dbname = your database name
'root' = your database username
'' = database password
*Visit and explore this link for more info about PHP with Database.