phpMyadmin errors - php

Im running on MAC 10.7.4 web server, installed the latest version of apache, php and mysql. Now I have phpadmin running but I get this message when I log in.
"The phpMyAdmin configuration storage is not completely configured, some extended features have been deactivated. To find out why click here."
I have been googling for the past hour because I'd like to enable these features. I have been only coming up with vague answers on how to set this up. I'm more of a beginner so I need some help!

To use some of the extended features of phpMyAdmin, it needs to have its own database where it can store settings.
Have you read this section of the docs?
http://www.phpmyadmin.net/documentation/#linked-tables
It talks about a .SQL file that you need to run on your server which sets up the necessary tables. You can run this script in either phpMyAdmin or the MySQL command line tool.

Related

phpmyadmin export table fails

I am currently running phpMyAdmin 4.7.1 against a mySQL 5.6.16 database on my Mac (El Capitan). Everything worked well, but in order to upgrade my test Moodle database, I had to upgrade my PHP installation from 5.5.38 to 5.6.30, which I did using the excellent installation instructions here (https://coolestguidesontheplanet.com/?s=El+Capitan+php). HOWEVER, as soon as I did so, my phpMyAdmin began behaving oddly. I can still log in, list table structure and browse contents, but then I run into problems.
ONE: When phpMyAdmin lists contents of a table, the select * from SQL is shown in the window at the top of the page. If I "refresh" this -- i.e., running SQL which phpMyAdmin successfully just ran, the window hangs with a message that it is trying to contact my Mac server (by name), then goes blank.
TWO: If I try to export table contents using the phpMyAdmin option, the window also hangs with the contact message, then goes blank.
There are no messages in /var/log/apache2/error_log, in /var/log/mysql/mysqld.error, or in /var/log/php/php_error.log. There are no messages in the system.log, so I am stuck without a clue as to the issue.
Replacing PHP 5.5.38 as my PHP engine makes phpMyAdmin work (but I can't use this version going forward because it doesn't work with other software I need to develop).
I have compared the php.ini files and extension files as much as possible, but I cannot find where the pertinent lie, other than that I am using a stricter developer version of PHP 5.6.30 than I was for PHP 5.5.38. Infrequently, the export will work -- so I must have a permissions issue or a resource issue in my environment.
Any suggestions will be greatly appreciated.
Try to export the specific tables, and not the entire database at one go, or just use mysql workbench.
then try and install another php with the phpmyadmin server.. do backup your database you can get that from C:\xampp\mysql\data for windows user.

Configuring php desktop chrome for allowing it to connect to sql server

I wanted to convert my php application into desktop application to run it as an .exe file by just double clicking on it. For this I found many third party softwares like bamcompile,wapache,Php desktop chrome,etc. From these the most compatible and the one which fulfilled my requirements to accountable extent was php desktop chrome.The rest both had their drawbacks-
1.Bamcompile-It runs the application on commandline and does not show GUI,so I was not comfortable with that.
2.Wapache-It runs the application but it run it in Internet explorer browser so it cannot run the framework supported by my application.I need Google Chrome for that.
3.Php desktop chrome- This fulfills my requirement to a great extent but the problem is that it does not supports sql server database.I thought about using sql server as database because I don't want to install xampp/wamp on every machine where I want to use my application.I added the drivers needed for using sql server to php desktop/ext folder but I am not finding the php.ini in php desktop application where I can add extension to it.So it there any way that I would not have to install xampp/wamp or any other application on client machine to run my application.
Problem with converting the application into exe file is solved with php desktop. That means when I start only mysql from xampp my application runs perfectly fine ,there is no need to start apache for that.So now I want to do something that can include my database as well in the php desktop chrome folder and supporting application into it as well.So that I don't need to start phpmyadmin always.Or is it possible to install only phpmyadmin/MySQL without xampp and if yes how to configure that?Because I installed that individually but I don't know why is it showing Access denied.
Thanks in advance.
I have tried to provide as much details as possible ,in case you need to know anything else,please let me know. I have tried all possible way please help me out.
Your need is quite exotic. Try phpinfo() in your application - then you will find where your php.ini is served from. That might put you on track. Another thing to try, if your database is not too big, SqlLite database in your project, because it is bundled with php and does not require a separate server.

Installing php and mysql for Joomla - Can't get past installation

Trying to install Joomla 2.5.7 but I can't get past the Pre-Installation Check as it says: Database support: No
I've got mysql (5.5.24) and php (5.3.15) installed manually on a Linux machine (I don't want to use LAMPP). I've done this a few times before and checked everything is the same with my other working machines in terms of the packages and the php.ini file. I can also access the mysql fine.
Any suggestions on what I can try? Is there a way to find out what check it is failing on?
Argh! I did miss a package. A pretty vital one at that: php-mysql. Don't forget to restart web server.
Joomla checks what databases are supported by testing each type for a connection. One possible issue is that the way you have things set up the owner of the installation process does not have permission to use the databases.
Ooops sorry I didn't see that you had soled
Most CMS come with a sql database setup files. These files must be added to your mysql data. Or tables and users must be manually created.
Have you done this?? If not check manual for details.
http://linuxinternetworks.com/how-to-install-joomla-in-linux/
Comment, after trying, I am reading it too.

php odbc_connect to mssql works in linux/ubuntu command line not browser

I really feel like I have done an exhaustive search on this matter, found similar issues and have tried a number of things without success, so I am for the first time posting a question here:
I do a lot of web pages/web programming (PHP/jQuery mostly) and host these pages on my digital library department's Drupal/Ubuntu Server. I just code them and post them via Dreamweaver, as I don't have much use for the Drupal front end. I just need the server for my pages.
Anyway, I am wanting to make some PHP pages that can connect to our library catalog, so I have been working from the command line of the Drupal/Ubuntu server. I installed unixODBC, had some troubles, installed FreeTDS, set up the drivers and the DSN.
Finally...
I was able to get a connection to our catalog via tsql and run a query.
I made a basic PHP script to test the connection:
It works from the Ubuntu command line of the server (connection successful).
It doesn't work when I load it in a browser. I get the dreaded:
Warning: odbc_pconnect(): SQL error: [unixODBC][Driver Manager]Data source name not found, and no default driver specified, SQL state IM002 in SQLConnect in /var/www/mydirectory/mytestpage.php on line 15
UPDATE: I installed a test Ubuntu Server in a partition on my laptop, where I started clean, installed Apache2/PHP5(with mssql and odbc modules, etc)/FreeTDS, etc. I got a tsql connection. I made the basic PHP script and ran it successfully from the command line. Then I navigated to the php page from a browser and it worked! I still need to get this to happen on the Drupal server version, but now I have at least narrowed down the issue to something on the Drupal server.
I searched and found such possible causes as:
File permissions, which I think I got corrected, but no go
That maybe I had set up a User DNS and not a System DNS which I tried my best to correct with the proper "odbcinst" command options
That maybe php needs to be running in CGI mode instead of as a module. But that seemed unlikely from what I read. And I am not sure how that would affect Drupal. (There are limits to the system wide changes I should make here.)
A number of people said it was SElinux blocking Apache from displaying the page in the browser, but temporarily disabling SElinux didn't work.
Thanks for any assistance!
Check you have enabled the mssql.so etc at the following location
/etc/php5/apache2/php.ini, you will be having another at /etc/php5/cli/php.ini
in ubuntu php.ini will be maintained separately for cli & mod_php apache configuration
If you are going to test your odbc sources on the commandline, I would advise you use the isql utility instead of tsql. isql uses the DSN you defined in odbc.ini to connect to the database, while tsql connects directly to your database.
If it works with isql, it should work on your webpage as well.
Also check the Drupal/Ubuntu Server files /etc/odbc.ini (your DSN sources) and /etc/odbcinst.ini (TDS Driver settings) to see if they match the ones on the working Ubuntu installation.
My guess is it has something to do with the php. ini file. On my Ubuntu system I've got 2.
One in /etc/php5/apache2/php.ini
And one in /etc/php5/cgi/php.ini
The values in the apache2 path will need to be adjusted to allow the connection. Unfortunately outside of that I'm not too much use as I use MySQL and Mongo
Copy your php.ini from work server to non-work server, add make needed environment variables accessible before starting your web server, and make sure your web-server has full access to your odbc and odbcinst ini-files. And so, using mssql knowledge base or help.

MySQL problem reconnecting (mysqld.exe) keeps giving error

Need some guidance figuring out what went wrong. I've been using mysql, phpmyadmin for just under a year on my home computer while I develop a webapp. 3 days ago I updated my windows vista with all the "wonderful" microsoft updates, security patches, etc...and now it's broke. I tried uninstalling all the upgrades, but there are 4 of them I can't unistall because microsoft says their "operating system" updates and can't be unistalled.
My system is: windows vista, php 5+, mysql 5.1, Apache 2+.
I can run my web app and it queries the database without any problems. However, when I run phpmyadmin to get into the database I get an error: "mysqld.exe has stopped working" and phpmyadmin crashes. I tried going to the command line for mysql to do a mysqldump to backup my database and it gives me an error "2013, could not connect to the server". If I restart the computer the webapp will work again. Basically, php can query the database, but if I try to get at the database through phpmyadmin, or the command prompt the mysqld.exe error occurs and blows mysql out.
Any ideas what's going on here? Any ideas how to get around this to backup the db, so I can reinstall mysql?. I'm really lost where to start. I don't really know if the updates caused the problem, or if the 4 updates that can't be unistalled are really the problem.
Any tips will be appreciated. thanks.
You could try using XAMPP. It has PHP, MySQL, Apache, and other stuff all in one easy to use package.
After a software/ hardware drivers update, it may happened that the service mysqld.exe crashes at each launch (usually with message: mysqld.exe encountered an error and needs to close)
Check the solution described here (it worked for me) if you wish to avoid mysql reinstall.

Categories