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?
Related
I want to sync (share) A MYSQL database over several computers. My strategy here is to move the database to a DropBox directory so it can be used on multiple machines. I have found a clear description of how to do this on Windows, but the location of the database in the XAMPP directory and the names and locations of the mysql configuration files (my.ini on Windows, my.cnf on mac) are different. The config file directives are different enough that I couldn't get it to work on the mac simply by comparing the changes made in the Windows file.
I tried moving the MYSQL database and changing the my.cnf file as it made sense to me to direct the software to the new location and was unable to get it to work. I also tried leaving the config files along and attempting to redirect xampp with a symlink in the directory where it looked for the database folder. In neither case could I get xampp to fire up mysql.
I have had inconsistent success using symlinks with xampp, using them primarily to redirect xampp to a new php localhost directory. In this case I couldn't get it to do this with mysql.
Does anyone know how to do this, i.e. which setting in the my.cnf file need to be redirected (I've tried about every variation I could think of) or how to get it to follow a smylink to the alternative directory?
Thanks in advance for any help.
--Kenoli
if you are on a Local Area Network you can simply use one of your PCs as a mysql server and connect to the database using the local IP address. If not, I solved this using Hamachi, and using the Hamachi ip address of the pc you want to use as a server. I know this is not a direct response about the symlinks and DropBox, but it solves the problem.
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
On my under development website I am using a standalone SQL database file, users.db, to store user login details.
I am wondering though: Should I be using full MySQL integrated to the server like PHPMyAdmin? Is my current "solution" as risky as I think?
I am handling it this way as it means easy access from a number of utilities, including standalone desktop Python programs, via SQLite3 but is this insecure? The file is in my secured cgi-bin but could someone get their hands on it and just download the whole database?
Any and all advice or clarification appreciated,
Ilmiont
Both SQLite and MySQL store their data in some file(s).
Both are insecure if you allow HTTP users to access these files.
Typically, the default configuration of MySQL puts the database files into a separate, non-public directory, while SQLite has no defaults and allows you to put the file anywhere.
But when you are aware of the possible problem, SQLite is as secure as MySQL.
(Checking is easy; just test if http://www.example.com/cgi-bin/users.db works from the outside.)
First of all, if you're on a linux machine, not sure about windows, you can set users and file permissions who are allowed access to that file, but you should know what you're doing when it comes to permissions. The other thing that you want to make sure of is the file location. Don't place the file in the web root, place it somewhere else not accessible from the web, but accessible to your app.
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.
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.