I'm trying to install Kamailio but received this error.
ERROR: database engine not specified, please set up one in the config script.
When I check kamctlrc, I found this.enter image description here
My kamctlrc shows DBENGINE=MYSQL. Isn't this already setup?
Anyone knows how to solve the problem?
The line you highlighted in the screenshot is commented -- remove the # from the start of the line.
kamctlrc is actually interpreted as a shell script, so same syntax applies -- what is a comment in a shell script is a comment in kamctlrc.
Related
This question already has an answer here:
VS code terminal can't find AWS SAM even though windows terminal can
(1 answer)
Closed yesterday.
So I downloaded the MySQL installer from https://dev.mysql.com/downloads/installer/. I then went through the process of setting it up via the installer etc. After this was complete, I went to test the command in both Windows PowerShell and CMD, but neither worked.
I looked everywhere I could online to find out what the issue was, but nothing really worked. I found a post that said to add the MySQL path to the main system PATH and so I did. The command I used was:
SET PATH=%PATH%;C:\Program Files\MySQL\MySQL Server 8.0\bin
I also manually edited my environment variables and checked everything there. HOWEVER, a really weird thing is that when I run that command in cmd the mysql --version command WORKS! When I run the same command in Powershell it doesn't, and when I close Windows Terminal and re-open it, the command no longer works in cmd! I really have no idea whats going on. The error message I receive in PowerShell is:
PS C:\Users\User> mysql --version
mysql: The term 'mysql' is not recognized as a name of a cmdlet, function, script file, or executable program.
Check the spelling of the name, or if a path was included, verify that the path is correct and try again.
And the error message I receive in CMD is:
C:\Users\User>mysql --version
'mysql' is not recognized as an internal or external command,
operable program or batch file.
If anyone could give me a hand, that'd be amazing, thanks.
Adding to the PATH the way you did is only temporary. It lasts as long as the terminal is open, and when the terminal is gone, so is the change to the path. Use setx instead of set to make it permanent, or make the change using the UI in Windows settings. To do the latter, open the Settings dialog and type Environment into the search box, and then choose the option to change the system environmental variables. When the System Properties dialog appears, click the Environmental variables button at the lower right.
I'm trying to install Phabricator with that documentation: https://websiteforstudents.com/install-phabricator-platform-on-ubuntu-16-04-18-04-with-apache2-mariadb-and-php-7-2
When i use "sudo ./bin/config set mysql.host localhost" command there was a error:
FATAL ERROR: Unable to load the "Arcanist" library. Put "arcanist/" next to "phabricator/" on disk.
Any solution?
It looks like the most recent git commit is missing some critical files from the arcanist directory.
I downloaded commit 26f853b from 2 days ago (26f853b6343083c3ddfb6a393843edb20248ee71.zip) from here and the script ran through. I haven't tested if phabricator actually works with it however.
You might want to submit a bugreport.
I've received the same fatal when tried to upgrade the Phabricator via update script.
I did manual update in the path in
./phabricator/scripts/init/lib.php
from
"arcanist/scripts/init/init-script.php"
to
"arcanist/support/init/init-script.php"
after which the update script passed and storage upgrade was ok.
Maybe there was a typo and the "scripts" in the path should be "support".
Also reported here https://discourse.phabricator-community.org/t/the-phutil-library-phutil-has-not-been-loaded/3543/2
I transferred my web project from another laptop to another. Installed every jar files needed. But when i run the project, this error comes out.
C:\Users\user\Desktop\Inventory\Inventory\nbproject\build-impl.xml:1013:
Warning: Could not find file G:\Downloads
from Chrome\commons-fileupload-1.4-src.zip to copy.
BUILD FAILED (total time: 0 seconds)
Ive tried :
Could not find file mysql-connector-java-5.1.13-bin.jar
I have mysql connector installed on my libraries. So i tried Saumil answer. But i could not find the line in my build-impl.xml which is this:
copyfiles files="${file.reference.org-netbeans-modules-db-mysql.jar}"
todir="${build.web.dir}/WEB-INF/lib"
So since i couldn't find the line that Saumil suggested in my build-impl.xml, i have no idea how to fix this. I am not sure which line should i remove to fix this.
Fixed. All i did was clicking the blue link on the error line, and remove all "copyfiles files" line and rerun the project. Thanks :D
I have written my SQL code in a file using notepad with a .sql extension, and I'm trying to run said file from a MySQL v5.7.26 console using wamp server with the help of the SOURCE command. However, the file won't run and instead I get an error message saying 'Unknown database'.
Since my aforementioned .sql file is in a folder on my desktop, I passed the absolute path of the file in the SOURCE command.
I've also tried to create a new database, and then running the file.
Then I tried to run the file by dropping the database then creating a new one from scratch as shown from the snippet below. That's where my file starts from.
Both methods yield the same aforementioned error.
This is my SOURCE command:
mysql> SOURCE C:\Users\useme\Desktop\Harsh\new_ig_clone.sql;
This is how my code in the file starts from.
DROP DATABASE ig_clone;
CREATE DATABASE ig_clone;
USE ig_clone;
The following is the error I get after I use that command:-
'unknown database' error message image
Please help me solve this issue, and explain where am I going wrong. Thank you.
First page of code
use the command:
SOURCE "filename";
I'm trying to use the dbext vim plugin to connect to a MySQL database.
When I give commands like <Leader>se I get an error:
Can't open file
/var/folders/b3/s3wyytf90_ld113h1w3p86ldcg4glv/T/vQ0XMX3/7
That file doesn't exist. But the SQL I expect to be executed does exist in:
/var/folders/b3/s3wyytf90_ld113h1w3p86ldcg4glv/T/vQ0XMX3/dbext.sql
So it looks as if the plugin is writing a temp file in one location and looking for it in another.
I'm sure the plugin can't be broken and I must have done something wrong, but I don't know enough Vimscript to follow it through.
I have Vim v7.3, dbext 20.00 and have just installed by unzipping the plugin zip into my .vim directory.
I've used
:DBPromptForBufferParameters
to set up my connection parameters.
The full error looks like:
dbext: Executing SQL at 13:54
Error detected while processing function dbext#DB_execSql..dbext#DB_execFuncTypeWCheck..<SNR>42_DB_MYSQL_execSql..<SNR>42_DB_runCmd:
line 24:
E484: Can't open file /var/folders/b3/s3wyytf90_ld113h1w3p86ldcg4glv/T/v0BN3Qw/7
Press ENTER or type command to continue
Can anyone point me in the right direction to resolve this?
Edit: I've since tried an install into an empty .vim directory, with all of my other config and plugins removed, so I don't think that it's a case of conflicting configuration.
I'm running MacOSX, in case it's relevant.
Dumb mistake on my part.
I was supplying a bare password which needed to be quoted in this context due to a special character.
I'm now quoting the password when prompted for it by :DBPromptForBufferParameters and everything is working.