I can run multi-queries with MYSQL v5 with extension PHP :mysqli.
But with MYSQL 4 with extension PHP: mysql ..
with new query, have the problem.
I would like to verify the information and the way to resolve.
Because, the company hosting service is using mySQL v4.
Thank you
I would like to verify the information
Yes, you can't
and the way to resolve.
run your queries one by one.
Related
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.
I already use wamp(PHP+MySQL) on windows m//c. Now I wan to use SQL database with PHP along with WAMP. Can I use two diff database with PHP on same machine ?
Of course you can, install SQL server database, and change the connection parameter as needed.
You can even use two databases for one project.
Cheers!
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.
My php installed with pdo_mysql, without mysqli/mysql. When I use phpMyAdmin, it showed
"The mysqli|mysql extension is missing".
I tried many times to install mysqli/mysql but failed, and I don't want to re-compile php. So I gave up and chose another mysql web tool Adminer which can use pdo_mysql.
Question : Is it possible that phpMyAdmin use pdo_mysql to access mysql db? I think it should be not hard ,since another tool can.
This information is not immediately available in the online documentation, but the FAQ has it:
phpMyAdmin can connect to your MySQL server using PHP’s classic MySQL extension as well as the improved MySQL extension (MySQLi)
The phrasing is more explicit in their Wiki:
[Requirements]
(...)
Either the mysql or mysqli extensions
(...)
So the answer is: not by default, but contributions are welcome :)
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?