I'm trying to connect to MySQL using Netbeans. In Step 6 of this guide on how to do so, it says:
In the Path/URL to admin tool field, type or browse to the location of your MySQL Administration application such as the MySQL Admin Tool, PhpMyAdmin, or other web-based administration tools.
Note: mysqladmin is the MySQL admin tool found in the bin folder of the MySQL installation directory. It is a command-line tool and not ideal for use with the IDE.
So I need to find the location of the admin tool I'm using. I have PhpMyAdmin as part of the Uniform Server, so I tried to use that. But I can't find it. I manually DFS'd the UniServerX directory and couldn't find one single file which relates to PhpMyAdmin. There was a directory called "PhpMyAdmin" containing a bunch of files, none of which looked like the right ones. I did a search, and could only turn up that directory.
This is the full directory for PhpMyAdmin:
This is the form I'm trying to fill in on Netbeans:
I tried selecting "db.opt", but that wasn't the right file according to Netbeans. What should I be putting in this form? Which file singularly corresponds to PhpMyAdmin, and where should I be able to find it on my system if I have UniServer installed?
PhpMyAdmin is a web interface for managing a MySQL database. I think what you are looking for is something like one of these (try them in your browser): http://localhost/phpMyAdmin/ or http://localhost/apanel/phpMyAdmin/
The path in NetBeans can be configured to whatever you would like, you can even leave it blank. Its just a shortcut to open the admin console.
I would suggest setting it to UniController.exe (its in the top level folder of the UniServer installation). Through that tool, you can start/stop the server, and it has a button to open the PhpMyAdmin console.
Related
I was wondering if someone could help showing detailed steps (if possible) to make MySQL accessible remotely. Example: PC 1 has MySQL installed (DB server) on it and PC 2 can now ask PC 1 for data using either PHP, Python etc.
First, I would like to give credits to the people who assisted me when doing this. I will outline how I managed to get this to work. This was done on a machine running Windows 10. The steps are outlined below:
Installing MySQL and Location my.ini file
After installing MySQL server and workbench. Windows store my.ini file on a hidden location other than that of the MySQL installation location.
C:\ProgramData\MySQL\MySQL Server 5.7
This location can be view only when you have enabled windows to show hidden files. This is achieved with the following steps:
Navigate to Control Panel
Click on Appearance and Personalization
Under File Explore Options, click on show hidden files and folders
Under the view tab, Advanced settings, look for the option hidden files and folder and select the show hidden files, folders and drives and click ok.
Navigate to C:\ and you should see the ProgramData folder
Copy this file onto MySQL installation folder
Navigate to
C:\ProgramData\MySQL\MySQL Server 5.7
and copy the file to
C:\Program Files\MySQL\MySQL Server 5.7
Configure MySQL for remote access
open my.in file using your preferred editor and look for the line and remove the # in front of it to uncomment it:
bind-address=0.0.0.0
if the line is not there then add it manually save and restart MySQL or the machine.
Activating Telnet
The computer must have the telnet activity-activated, to achieve this the do the following steps:
Navigate to Control Panel -> Programs -> Programs and Features and under this section click on Turn Windows features on or off
Look for Telnet Client and check it
Click Ok, and done now telnet is active.
On the MySQL, workbench creates a new SQL connection and use the IP address you used on my.in file and you should be set to go.
Now test this by writing a simple PHP or Python script to connect to your MySQL server.
When open up the Neo4j Community Edition program, it gives me an option to choose my database location.
I chose the path D:\Program Files (x86)\Neo4j.
When I look at the database information in the browser, I find that this is not where the database is actually located.
It seems to ignore my choice and always put the database in C:\Users\Peter\Documents\Neo4j\default.graphdb. Is there a way I can actually change the database location?
I just tested it and it worked for me.
I chose the new directory directly after install though. But also after choosing a different directory it honored my selection.
Did you have an old installation or a fresh install?
I have an Oracle tnsnames.ora file from my previous workplace. I want to pick it up with my newly installed PL SQL Developer on another computer. I have copied the file into ..ORACLE/product/11.2.0/client_32/NETWORK/ADMIN but PL SQL Developer cannot find it.
When it starts it is not showing me any choice of database.
In About->i->TNSNames I dont see any lines
I have found a number of advices to look for it in Tools->Preferences->Database->..., but I dont have a Database tab in my preferences.
How can I fix it?
If you are certain your tnsnames.ora file is correct (e.g. by testing the connection with the Oracle Net Config Assistant, or logging in successfully with SQLplus), and you are able to open the PLSQL Developer application, but you still can't connect to the database in PLSQL Developer, then follow these steps:
In PLSQL Developer (version 11.0) go to Help/Support Info
Click the TNS Names tab. If the path in PLSQL Developer is wrong it will be blank (no tns file found) or incorrect (wrong tns file in use)
On the Info tab scroll down to the TNS File entry and to see the path for the tns file PLSQL Developer is using. Very likely this is wrong.
To correct the path:
open a command prompt
navigate to the PLSQL Developer directory in Program Files
enter this command:
plsqldev.exe TNS_ADMIN=c:\your\tns\directory\path\here
*path is to the directory containing your tnsnames.ora file -
for me this is: c:\Oracle\product\11.2.0\client_1\network\admin
A new PLSQL Developer UI will open and you should be able to connect.
Make sure you have a Windows environment variable TNS_ADMIN set to the same path
On Windows 7 you go to Start, Control Panel, System, Advanced System Settings, Environment Variables to view/add/update environment variables
Which Oracle client are you using?
Oracle 64bit 11g client isn't support in PLSQL Developer. Try to install 32bits client.
I had the same problema, but as described in the manual.pdf, you have to:
You are using an Oracle Instant Client but have not set all required
environment variables:
PATH: Needs to include the Instant Client directory where oci.dll is located
TNS_ADMIN: Needs to point to the directory where tnsnames.ora is located.
NLS_LANG: Defines the language, territory, and character set for the client.
Regards
Check if tnsnames.ora not saved as text file with an additional hidden .txt extension. Windows File Explorer will not show it by deafult settings.
I recently had the problem of deleting the tnsnames.ora from the path where I had it, my solution was to create an environment variable called TNS_NAME with the value the path where the tnsnames.ora file is located and ready
Yes, many years later. But still useful.
PLSQLDEV: 14.0.6
InstantClient: 12c
Create an environment variable "ORA_HOME" pointing to your InstantClient installation.
Inside it create "Network" and "Admin" and put the TNSNames there.
It worked for me after trying all other solutions.
You most certainly have a databases tab in sql developer (all versions I've used in the past have this). Maybe check again? Perhaps, you're looking in the wrong location.
On a mac, the preferences is under "Oracle SQL Developer" (top left) -> Preferences -> Database -> Advanced -> section called Tnsnames Directory is where you specify the file.
On windows (going from memory so might have to search if this isn't correct)
Tools -> Preferences -> Database -> Advanced -> section called Tnsnames Directory is where you specify the file.
See this image
Lots of conflicting reports out there when I google; can anyone help?
Basically I want to have the same databases available at work & home PCs, for development porpoises only.
I will only ever be physically at one PC (with a 45 minute trip between) and only then will there be database access. The MySql service will be running on both, but only one will be write/reading the database. Both run Windows 7
I don't need to bother with symlinks, junctions, etc as I have enough space in my DropBox to install all of Xampp there.
Can I do that without corruption?
I use something similar as part of my remote development testing, I have never tried to run a large set of data from this or a production database. Haha, but for testing queries and setting up a couple rows, etc... I use something very similar with little to no problems.
I believe that you can run the portable xampp and mysql from your Dropbox just go to www.portableapps.com to get the xampp and also download the portable launcher from the link on the page.
Let XAMPP server run on your computers, and the data folder saved on your cloud (DropBox, SkyDrive, etc).
You should install XAMPP portable on your root folder (c:) that is the same on all computer you use, then you can move XAMPP data folder (xampp Apache htdocs) and MySQL data (xampp Mysql/data) folder to Dropbox.
Do not use XAMPP installer, but use the portable one.
Configure the folder settings on both Apache and MySQL config file:
C:\xampp\apache\conf\httpd.conf
C:\xampp\apache\conf\extra\httpd-ssl.conf
C:\xampp\apache\conf\extra\httpd-xampp.conf
C:\xampp\mysql\bin\my.ini
Do the same with other server that you use (PostgreSQL, etc).
Make sure that you:
Always turn off XAMPP server after using on each PC.
Always sync Dropbox before changing PC, that is before logging on and after logging off on different computer.
Mind host / local domain variable on each computer.
Its probably better to use same username for all computer you want to use to run the data folder.
Other method is using PortableAppas.com, that is running the apps directly from USB.
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.