Openshift access to phpMyAdmin? - openshift

How do i access phpMyAdmin using openshift?
I'v just set up a new openshift account today and I really have no idea what I'm doing.
I'v added Node.js, MySQL 5.5 and phpMyAdmin 4.0.
With other web hosting services I could get to the phpMyAdmin user interface with the click of a button but with openshift... I don't see any button...
Thanks for your time.

If you have added phpMyAdmin and if you can see it under your application, you will be able to access it using this url;
https://XXXXX-XXXXX.rhcloud.com/phpmyadmin/
replace XXXXX-XXXXX as per your url.
If you haven't changed the default's, phpMyAdmin uses same username password which you use for MySql.

Related

Azure MySQL in App: The server is not responding

I have an Application hosted in a Windows WebApp with MySQL in APP enabled.
After realizing the application wasn't responding I could see in the logs errors about MySQL not responding.
So when I try to access the PHPMyAdmin from the console (clicking on the manage button) I got this error:
I already tried to restart my application, and also stop/start but nothing works.
I already looked for other posts here and no one help me, unfortunately.
As per your screenshot error, it is expected when we are using the Free F1 tier as you can see in my below Screenshot when i tried to reproduce the same.
Later when I changed to Standard S1 SKU and tried to access the PHPMyAdmin from the console, got the expected response from server.
Create an App service.
Go to create a web app. Left-hand side menu search MySQL. and click MySQL.
Click MySQL in App and convert off to on. and click the Save button.
Then Manage Enable and click on the Manage link. phpMyAdmin open.
Solved fixing the database port.
After checking the application's logs I realized a loop of tries to connect to the database and it got all memory and cpu of the server, doing the phpMyAdmin out of the connection. So after scaling the instance and restarting the application, I realized the MySql port had changed. So the problem was because in some time the MySQL port changed generating an infinite loop in the application and in the end making phpMyAdmin out because there was no memory available in the server.

How to access a database on mySQL on Windows Server 2012

I have no idea how Windows Server works. All I want to do is gain access to a database in mySQL on Windows Server. Is there a phpmyadmin like there is on Cpanel? I have no idea where to go.
It's a Windows Server 2012 that runs Apache and mySQL on which Wordpress is installed.
Someone please help.
Personally, for accessing mysql databases in a windows app, I use HeidiSQL.. But we don't do recommendations for software on SO, so you're free to choose whatever you want and I'm not going to focus on particular software in this answer
To access the mysql instance you'll need to know the username and password of a user with sufficient privileges to do what you want. If you don't know this username/password, a good place to sart looking is in the config files of any apps (like your apache web apps, wordpress etc) that use the db and see if you can read the password out in plain text there.. With luck the person who set all this up will have left behind the username/password in a config file and yu're away. If your question is about how to break into a database where you don't know the password, make an edit so this is more clear
You might check to see if PHPMyAdmin or MySQL workbench is installed; both are great tools for managing MySQL databases and popular with Wordpress developers
Thanks guys. Yes the server happened to have HeidiSQL installed on it and I was able to access the database.
Thanks for your help.

MySQL password unknown in LAMP stack on Google Cloud Platform

I just start using Google Cloud Platform today and I create a LAMP stack machine, which run Debian 8, following Google they dont give any support for it and I'm trying to figure out which was the password they put on my SU and the password they put on the MySQL database.
Anyone has a idea?
I tryed using my own google password for superuser without any success.
Thank you for reading and replying!
Go to the Deployment manager on Google Play, https://console.cloud.google.com/dm/deployments, click your deployment and on the right side you will see the following: MySQL password (Temporary)
On the properties and info of the VM (Lamp Stack), in my case lamp-1 you can found the password autogenerated with the name mysqlRootPassword

Failing to Move / Migrate a Liferay Portal to other Server

Is there an up-to-date, complete guide on moving a Liferay Portal ?
How am I supposed to migrate a Portal to another Server in an efficient and safe way ?
I've been developing a Portal, connecting to a mySQL database. Then, I had to move both the portal and database to another Server.
So I did the following steps, pretty identical to this guide
export the mySQL Db and import it in the new Server. The data are moved correctly, as I've checked them manually
Copy a new (clean) copy of the Liferay Portal to the new server
copy the data folder
copy portal-ext.properties, then edit the db url and login credentials
Copy the portal-setup-wizard.properties, then change the 'liferay.home' param to the correct portal path
I run the server and my admin has the default 'test' password instead of the one I used before the migration
then I see that Can't have access to the previous content, like Users, UserGroups, Pages, etc. I Also tried re-indexing the database entries (Users and Organizations, Web Content etc). Again nothing
I also Tried copying the whole Portal, and only changing the .properties files to target the new database and portal path. Again the same problems, no Content from the old portal. It's like I started a fresh portal
So what did I do wrong this time ?
Used Liferay 6.1.0 ce ga1
I failed migrating the portal and had to create it from scratch. Almost 1 year later, i found out what caused the problem. Here it is. To be fair, it's a MySQL issue, not Liferay
The MySql database, since it got ported from a windows server to a Linux one, was exported with table names in Uppercase. When Liferay tries to connect to the database, it will not find the Liferay Model's tables, and will create new ones. Practically Liferay treats the Database as an empty one, and it starts as a fresh portal. I only found that, while exploring the database sometime later, and found out I had each Liferay Table both in uppercase and lowercase.
More info and solutions can be found here

How to access phpMyAdmin on remote server

For my websites I use Dreamhost. Dreamhost requires you to create a hostname (ex: mysql.mclindigital.com) that the database will reside on. For me it's simple, if I want to access phpMyAdmin, I simply navigate to mysql.mclindigital.com, and it enters into phpMyAdmin automatically.
Apparently Dreamhost is in the minority using this method, because most people seem to use "localhost". So, how do I access phpMyAdmin for these websites? Will I need to get their Web Panel login info to browse around for this info?
As an example, I had a past client and I had to go here: http://216.120.237.104:2082/3rdparty/phpMyAdmin/index.php to get into their phpMyAdmin. I never really understood what I was doing, but it just worked. Now I am in the same situation, but this time the client isn't as tech-savvy and is unable to give me the URL I need to go to.
Also, I should point out I am not 100% certain that they have phpMyAdmin installed. I do know they have a database however, because they are running a Wordpress Blog.
There is nothing magic or special about phpMyAdmin. It is just
a bunch of php scripts.
Some webhosts(Such as dreamhost) may install it as standard
similary to formmail and a bunch of other tools they may install.
Your problem is most likely that you client don't have
phpMyAdmin installed, and the easy solution(If you have ftp access)
is to go to http://www.phpmyadmin.net/home_page/index.php download
phpMyAdmin, configure it and then just upload it to their ftp server
your self. Then you can acces it similary to any other php script.