Mysql apache2 phpmyadmin on ubuntu - php

Im working on a school project, im trying to work with apache2, mysql, php, phpmyadmin, on ubuntu 15.04 separately (im NOT using all in one server like wamp or xamp)
Im familiar with working with apache and php, and i need to make a website that uses a sql database, I don't know how to export my project (where I can find my SGBD files?!) and I don't have a clear idea on how to work with phpmyadmin.
I need some tutorials or books that can get me starting with all these technologies.

The database is exported into .sql files from the phpMyAdmin, or a command line utility mysqldump.
phpMyAdmin Tutorial: http://code.tutsplus.com/tutorials/installing-and-using-phpmyadmin-for-web-development--cms-21947
And for MySQL try to search YouTube for tutorials. I especially love the tutorials made by Derek Banas, this is his take on MySQL: https://www.youtube.com/watch?v=yPu6qV5byu4
I hope this helps you become a better developer!

Related

PHP pdo_odbc query fails on Windows

Please bear with me.. I am not entirely sure how to ask this question. I hope someone catches on.
I do my PHP (7.4 and 8.0) programming in FreeBSD, connecting to Windows based SQL servers using PDO_ODBC. In FreeBSD, I successfully use FreeTDS to pull data over ODBC and everything works.
What I am developing is meant to run on XAMPP or WAMP (or any similar stack) on a Windows Server of recent flavor, but when I copy the PHP code over, my query fails. I have set up a 64bit DSN which successfully connects to the target database and I can run queries against the database - at least in simple terms. The code I am trying to migrate contains a fairly complex query and running it on this platform return 0 data to the PDO. It runs fine in SQL Management Studio.
So the question is very open ended, but for now: Why or what?

Trying to connect to MySQL through the command line, but getting MariaDB instead

I'm currently trying to learn PHP and MySQL from scratch. I've downloaded the very latest XAMPP and started completing some small projects. Everything is going great. Every project I've done so far uses phpMyAdmin and I've found it quite fun. However, I'm now trying to do some more advanced projects. These tutorials use the command line to connect to MySQL rather than phpMyAdmin.
I've never used the command line before, so I was eager to learn, but here is my problem. When I do the standard connection to MySQL I don't connect to MySQL like the tutorials. I instead connect to MariaDB. Once I'm connected the next commands in the tutorial no longer work and I don't know what to do.
Being new to PHP, I'm following these tutorials line for line and using Google to research problems. However, this one I can't find an answer to. No books or tutorials I've seen mention MariaDB.
Is MariaDB different to MySQL? If so, how do I learn the commands?
Would it be easy to use MySQL instead? How do I do this?
Simply put, everything I'm currently using as a resource to learn PHP and MySQL has not mentioned MariaDB. When I search on Google I can't really find much on MariaDB that answers my questions. I'm struggling to work out what I should be doing to complete this projects and continue learning PHP.
Regarding the command-line versus phpMyAdmin, you should be able to stay in phpMyAdmin and use its SQL panel to type your commands.
MariaDB is a drop in replacement for MySQL. You shouldn't have any problems using MariaDB instead of MySQL. The things you're gonna use with MySQL will 99% of the times also work with MariaDB.
When searching for answers, just google for your MySQL-errors and correct. Your code will work even though you use MariaDB instead for MySQL for the SQL server.

Does php 5.6.6 work with mysql 5.6.23?

Or is php 5.4 only compatible with mysql? I've been having some problems getting my php to work with mysql.
I'm using PHP 5.6.6, Apache 2.4, MySQL 5.6.23. My PHP and Apache work just fine. I created a website using CSV. I wanted to learn how to use MySQL, but I was having problems trying to get MySQL to work with my PHP. Now, I have never take any courses on MySQL nor have I ever used. The only thing I have done with MySQL is install it from the community tab from the MYSQL download page. I followed all the instruction and set my file path to be C:\mysql, and my data path to be C:\mysqldata, but I don't know, why it doesn't seem to work with my php when I try to connect. Is there another step I have to take to connect? I know a lot of people use WAMP, which is something I might look into if I don't get this working, but If there's anyone who has installed all three (apache php and mysql) sperately, know what my problem might be, I'll really appreciate it.
PDO works on all PHP versions 5.1+, which is the preferred method to connect to MySQL.

XAMPP PDO Oracle, Cant make it work together

i want to make connection of PDO to oracle database.
i tried all day to set it up, i am using xampp, installed latest version of xampp.
i tried to follow this guide: Installing PHP and the Oracle Instant Client for Linux and Windows
Also have tried to follow this guide: Activate Oracle on XAMPP for Windows : OCI8
Please anyone help me guide me to the right direction. I am stucked and it is a must to do job, cuz all my work relies on it.
the server i want to deploy my file, runs on oracle database, thats why i want to tryout the oracle in my local PC.

Use MySQL database like SQLite in PHP

Im developing a little web application with PHP and MySQL but in the computer that im working, i cannot install Database Servers like SQL Server or MySQL Server.
I've worked with SQLITE and its amazing, NO INSTALL just the DABATASE AND THE CORRECT LIBRARIES.
DO you know if there's a way to work like this with MySQL Databases ?
Thanks.
NOTE: I 've tried .sdf of Microsoft SQL COmpact but i dont wanna use Microsoft products for now.
Not possible. MySQL is not a file based Database.
Yeah, you have to install MySQL (if you want MySQL) like you install Php in your computer.
Or you can get both of them in one app like: http://sourceforge.net/projects/xampp/
Is these what you want?

Categories