I want to edit postgresql.conf file but when I tried to open it ,I can't how can I edit this file to change the value of listen_addresses parameter?
You need to have access to this file. On linux, being root or sudoer do the trick.
Don't forget to restart your database.
Related
My problem is that I want to have my MySQL database in my workspace folder. I want to sync my database for all of my workdevices, so that i dont have to export my data every single time a change something.
I tried to create just a softlink to the direktory on every device I use with the mklink /D command in the commandline but I see that this doesn'n work.
Have you any idea how i can configure my database right this?
Here is the solution on stackexchange site : change data dir path
Just follow the step by step solution by RolandoMySQLDBA
I'm using solaris 10 vm box, every time I login or open new terminal my PATH variable is getting reset to default, I'm using export PATH=XXX command to set my path. When I tried to change the content in /etc/skel/local.profile file changes are not getting accepted even after I set them to 777 with chmod, same when I tried to change the login file in /etc/default, and there is no file or directory named environment in /etc/ directory currently my shell shows bash. Can someone help to permanently change the PATH variable without setting it for every session?
The /etc/skel folder is only used when you create a new user, its content is copied to the new user's home folder.
If you want to change the PATH variable everytime you login to your account, then add the following to the .profile file in your home folder (create it if it doesn't already exist):
export PATH=$PATH:/some/new/path
I am not able to start the MySQL server on my Windows system. When I tried in services.msc to run, I got this error:
Starting it through the XAMPP control panel does not work either:
Can you help me to solve this?
Open windows services (Start->run ->Services.MSC)
Find service with name "Mysql Server" and check path, it should be something like that:
"C:\Program Files (x86)\Parallels\Plesk\Databases\MySQL51\bin\mysqld.exe" "--defaults-file=C:\Program Files (x86)\Parallels\Plesk\Databases\MySQL\Data\my.ini" MySQL
Make sure that Mysql folder and executable file mentioned above exist by this path.
OR
Sometimes the file name of mysqld-nt.exe renamed to mysqld-nt.exe~ so rename it back to its original name and this may solve the problem.
Go to the path: C:Programs Files\MariaDB 10.2\data..
Lookout for my.ini file. Open the file and check the path for "datadir".
If that does not match to your installed directory then update it.
Your problem will be solved for sure.
I faced the same problem and solved it.
Just modify the registry editor value.
HKEY_LOCAL_MACHINE/SYSTEM/CurrentControlSet/Services/MySQL/ImagePath
I have found the sample configuration files provided with mysql 5.0, but I am not able to save them, when I edit them. I also tried saving using a different file name but I received an error by windows saying that I don't have permission to save file in that location (I am an administrator).
I need to edit the configuration file so I am able to save more data. I really can't figure out how to do it and have been struck on this problem since hours. anyone who can figure out whats going on?
to edit my.cnf file in linux opensuse 11.3
first of all open terminal window in su mode
then go to the directory /etc
then open my.cnf file in any of the text editor(kwrite);
now just insert the following two parameters after the line [mysqld]
wait_timeout=50
interactive_timeout=50
save and exit;
restart mysql;
now u can set your session time out by using the following:
set wait_timeout=5000;<br>
it is persistent
You need to have root permissions on my.cnf file to edit it.
So login using root user and then you will be able to edit my.cnf and then you need to restart MySQL server in order to reflect changes.
I see that the basic information was included in directing someone to edit the my.cnf; however, there is no step by step available for beginners. I have a great article with step by step instructions and graphics that explains how to get the MySQL settings and how to change the my.cnf as root through shell. Hope the article helps.
How to edit the MySQL my.cnf file
Regards,
James R
I am having some trouble changing my $PATH variable to include my recent mysql install. This is what I did. In a terminal session (using the zsh shell) I typed
nano .bash_profile
Inside of this file I put
export PATH="/usr/local/bin:/usr/local/sbin:/usr/local/mysql/bin:$PATH"
I exit, save, and when I type
cat .bash_profile
I can see the file was edited properly but when I close the terminal session, open a new window, and type
echo $PATH
I get the following:
/Library/Frameworks/Python.framework/Versions/Current/bin:/usr/bin:/bin:/usr/sbin:/sbin:/usr/local/bin:/usr/X11/bin:/usr/texbin
So not only is my new mysql path not in there but it didn't change at all. It must be saved in a different file besides .bash_profile correct? Any ideas which one?
Thanks in advance
The correct way to add paths to the environment in OS X is to create entries in /etc/paths.d, so in this case you might put "/usr/local/mysql/bin" into /etc/paths.d/mysql. More info in this question.
You can add:
export PATH="/usr/local/mysql/bin:$PATH"
into your .bash_profile file and you need to RESTART the terminal
or open new tab to check the added path.