I wanted to set $cfg['RowActionLinksWithoutUnique'] to TRUE so that I can edit the datas in phpMyAdmin without any Primary Keys present, but after checking over config.inc.php and both layout.inc.php in phpmyadmin/themes/
I can't find the mentioned configuration.
Does anyone know how where can I modify $cfg['RowActionLinksWithoutUnique'] ?
Currently using phpMyAdmin via XAMPP Control Panel v3.2.2.
There are default directives, and you only need to put something in config.inc.php if you are changing from the default. In fact, the official phpMyAdmin distribution doesn't come with a config.inc.php at all; if you need to change some value you have to create the file yourself. Since you're trying to change a setting that doesn't already exist in your configuration, you simply have to add it to config.inc.php. Just find a good section, anywhere will do really (I like to keep it near the top so it's visually separated from the server-specific settings), and add the complete line like $cfg['RowActionLinksWithoutUnique'] = true;
Save the file, logout and log back in so the changes are loaded, and you should be all set.
You can see more information in the phpMyAdmin manual.
Just open XAMPP and click on "Config" in the Apache module. Then select "phpMyAdmin (config.inc.php)".
Don't forget to set the semicolon ';' at the end of the variable.
$cfg['RowActionLinksWithoutUnique'] = true;
Related
Basically, I know I can go through my control panel and modify the path variable. But, I'm wondering if there is a way to through batch programming have a temporary path included? That way it is only used during that batch file execution. I don't want to have people go in and modify their path variables just to use my batch file.
Just like any other environment variable, with SET:
SET PATH=%PATH%;c:\whatever\else
If you want to have a little safety check built in first, check to see if the new path exists first:
IF EXIST c:\whatever\else SET PATH=%PATH%;c:\whatever\else
If you want that to be local to that batch file, use setlocal:
setlocal
set PATH=...
set OTHERTHING=...
#REM Rest of your script
Read the docs carefully for setlocal/endlocal , and have a look at the other references on that site - Functions is pretty interesting too and the syntax is tricky.
The Syntax page should get you started with the basics.
There is an important detail:
set PATH="C:\linutils;C:\wingit\bin;%PATH%"
does not work, while
set PATH=C:\linutils;C:\wingit\bin;%PATH%
works. The difference is the quotes!
UPD also see the comment by venimus
That's right, but it doesn't change it permanently, but just for current command prompt.
If you wanna to change it permanently you have to use for example this:
setx ENV_VAR_NAME "DESIRED_PATH" /m
This will change it permanently and yes, you can overwrite it in another batch script.
I am trying to move from PHPStorm to Sublime Text 3 but I got stuck on the autocomplete using SublimeCodeIntel in conjunction with Symfony 2. How can I make SublimeCodeIntel to scan all the vendor/ and src/ directory of my project?
Right now whenever I'm in the controller and I'm typing something like
$response = new Response()
$response->get
I get Warning: evaluating 'Request' at GamesController.php#27: could not resolve first part of 'Request'.
First, select the Settings-Default and Settings-User options under Preferences -> Packages -> SublimeCodeIntel. Copy the full text of the Default file and paste it into the User file, which should be empty if you haven't customized the plugin at all. You can now close the Default file.
Now, in the main body of the preferences, set
"codeintel_max_recursive_dir_depth": 25,
"codeintel_scan_files_in_project": true,
Next, scroll down to the bottom to the codeintel_config array, and edit the PHP section to the following:
"PHP": {
"phpExtraPaths": ["/path/to/library/files", "/another/path"],
"codeintel_scan_files_in_project": true,
"codeintel_max_recursive_dir_depth": 25
}
Save the file, restart Sublime, and you should be all set. If for some reason it's still not working, go to your ~/.codeintel/db directory and delete the PHP directory. You may also find a similar directory in the root of your project, so if it exists go ahead and delete that one too. This forces a reindexing of your code and includes, and since it's based on your new config options everything should work as expected. Remember that reindexing can take some time, so be patient.
Good luck!
I am trying to insert an image into my MySQL server. I have done some research and it looks like the best way to do that is through LOAD_FILE(). However, LOAD_FILE() always returns null. I know there are 4 conditions for LOAD_FILE():
The file must be located on the server host
You must specify the full path name to the file, and you must have the FILE privilege.
The file must be readable by all and its size less than max_allowed_packet bytes.
If the secure_file_priv system variable is set to a nonempty directory name, the file to be loaded must be located in that directory.
I am currently using:
select LOAD_FILE('/Users/pricedb/Desktop/FolderName/imageName');
and it returns NULL
I have confirmed that all privileges are granted to the user. What does it mean that the file must be located on the server host? The server is being run off my local computer and and file is located there, so does that mean I am good on that?
Any advice would be greatly appreciated, I do not know why it's not returning a value.
I had the same issue.
Fond out that the file to be loaded, needs to be in the folder location where mysql/mariadb has privileges to read it.
It can be configured, BUT the data folder is already has access right.
In my case I copied my file to data folder: C:\Program Files\MariaDB 10.3\data
And than I just called it with full path:
select load_file('C:\\Program Files\\MariaDB 10.3\\data\\test.txt');
Here is my command on windows 7:
select load_file("C:/Program Files (x86)/MySQL/MySQL Workbench CE 6.0.7/images/hieuImages/a.jpg");
And it worked!
You maybe try to copy your images into that directory and select again in mysql.
"FILE" is an administrative privilege.
When you say that ALL privileges have been granted, does that include global administrative privileges too?
Here's the syntax http://dev.mysql.com/doc/refman/5.1/en/grant.html#grant-global-privileges, but I found "MySQL Workbench" GUI more helpful.
Check out OS file permissions, too.
Using MySQL Workbench 8.0:
In the Result Grid panel where you can see the rows and columns, right-click the cell that will hold the BLOB value (currently shown as NULL).
In the context menu that appears, select the first item: Open Value in Editor.
In the lower-left corner, there are two buttons. Click on: Load...
Browse to your image file.
The Binary tab is filled with the image's binary data.
Click: Apply. You'll return to the Result Grid panel again. Notice NULL has been replaced by BLOB.
Right-click BLOB and select Open Value in Editor once more.
You'll find a new tab at the top: Image. There you can preview the image you just added.
Greetings!
show variables like 'secure_file_priv';
Load file in this directory.
select load_file('directory_from_1');
There are threads here with similar issue, but none of them specifically inside Cpanel. And none of their solutions work.
Basically, I am using a WHM/Cpanel setup.
INside PhpMyAdmin, I changed the editing type in Settings --> Main Panel (inside Cpanel) but it still doesn't make the rows editable on click, or double click, in Safari/Chrome/Firefox. What am I missing?
The implementation is on WHM/Cpanel. So I can also change the main config file of PhpMyAdmin. I changed the /usr/local/cpanel/base/3rdparty/.../config.inc.php where I had to add this line:
$cfg['GridEditing'] = 'double-click';
Then I saved the file, and restarted MySQL (not that that would help, but some site mentioned it), and refreshed phpmyadmin in my browser. No go. The rows in the Browse mode in a table are still uneditable.
The version is 4.0.4, which is the latest available in Cpanel.
What am I missing?
Those are asked during the installation, but are not anywhere in config files\tables to change afterwards
EDIT:
The changelog states the following:
[#MODX-760], [#MODX-1080], [#MODX-1528] Added setup option to set new_file_permissions and new_folder_permissions in welcome view
[#MODX-760], [#MODX-1528] Removed new_file_permissions and new_folder_permissions system settings from setup
Seems kinda weird to me to do that... I am still in need to change them, though.
It appears that these should be in your MODX System Settings although I wasn't able to locate them in any of my own MODX installs (all Revo 2.1+). There's a chance they might be redundant or are for some reason not being properly created during installation (in which case it might be an installer bug).
You might be able to override them by adding those settings, like so:
Key: new_folder_permissions
Value: 0755
Do that and then try creating a new folder using the File Manager. Let us know if the correct permissions are then being used. If so I'll look at opening up a bug report for the installer.
They are not in System Settings, as they default to the PHP umask values, as they should. If you want to override them, you can do so by adding the settings "new_file_permissions" or "new_folder_permissions" to your System Settings.
apache/webuser needs to write to:
core/cache
core/export
core/config/config.inc.php [change back after install]
core/packages
core/components
assets/components
EDIT Sorry, take a look here: core/model/modx/processors/system/filesys/folder/create.php
they appear to be hard coded in that file.