This may sound stupid, but it's frustrating me to death. I'm running OSX 10.6 and I did every step to install PHP and MySQL. I have the MySQL running, I created via terminal a database, called DBname. Now as WordPress says, I have to open wp-config.php and modify the information to make it able to connect to the database. At this point I'm not sure which username / password / host I'm using. As username I guess it's 'root', since I use the command ./mysql -u root to open up the MySQL client in terminal, no password, so I leave it '' and as host I guess it's 'localhost'. The problem is that when I connect to http://127.0.0.1/my-folder/wp/wp-admin/install.php the wordpress page is telling me the connection to the database failed.
I've been searching for at least one hour but couldn't find anything useful. Can someone point out what am I doing wrong?
Thanks.
EDIT: I installed MAMP, it gave me as host localhost, as user root and as pass root. I could navigate to PHPMyAdmin and create a database called DBname, but when I input the info in the wp-config.php file still didn't work (same problem).
RE-EDIT: this is the wp-config.php file, sorry but it's the italian version lol.
<?php
/**
* Il file base di configurazione di WordPress.
*
* Questo file definisce le seguenti configurazioni: impostazioni MySQL,
* Prefisso Tabella, Chiavi Segrete, Lingua di WordPress e ABSPATH.
* E' possibile trovare ultetriori informazioni visitando la pagina: del
* Codex {#link http://codex.wordpress.org/Editing_wp-config.php
* Editing wp-config.php}. E' possibile ottenere le impostazioni per
* MySQL dal proprio fornitore di hosting.
*
* Questo file viene utilizzato, durante l'installazione, dallo script
* di creazione di wp-config.php. Non è necessario utilizzarlo solo via
* web,è anche possibile copiare questo file in "wp-config.php" e
* rimepire i valori corretti.
*
* #package WordPress
*/
// ** Impostazioni MySQL - E? possibile ottenere questoe informazioni
// ** dal proprio fornitore di hosting ** //
/** Il nome del database di WordPress */
define('DB_NAME', 'DBname');
/** Nome utente del database MySQL */
define('DB_USER', 'root');
/** Password del database MySQL */
define('DB_PASSWORD', 'root');
/** Hostname MySQL */
define('DB_HOST', 'localhost');
/** Charset del Database da utilizare nella creazione delle tabelle. */
define('DB_CHARSET', 'utf8');
/** Il tipo di Collazione del Database. Da non modificare se non si ha
idea di cosa sia. */
define('DB_COLLATE', '');
/**##+
* Chiavi Univoche di Autenticazione e di Salatura.
*
* Modificarle con frasi univoche differenti!
* E' possibile generare tali chiavi utilizzando {#link https://api.wordpress.org/secret-key/1.1/salt/ servizio di chiavi-segrete di WordPress.org}
* E' possibile cambiare queste chiavi in qualsiasi momento, per invalidare tuttii cookie esistenti. Ciò forzerà tutti gli utenti ad effettuare nuovamente il login.
*
* #since 2.6.0
*/
define('AUTH_KEY', 'put your unique phrase here');
define('SECURE_AUTH_KEY', 'put your unique phrase here');
define('LOGGED_IN_KEY', 'put your unique phrase here');
define('NONCE_KEY', 'put your unique phrase here');
define('AUTH_SALT', 'put your unique phrase here');
define('SECURE_AUTH_SALT', 'put your unique phrase here');
define('LOGGED_IN_SALT', 'put your unique phrase here');
define('NONCE_SALT', 'put your unique phrase here');
/**##-*/
/**
* Prefisso Tabella del Database WordPress .
*
* E' possibile avere installazioni multiple su di un unico database if you give each a unique
* fornendo a ciascuna installazione un prefisso univoco.
* Solo numeri, lettere e sottolineatura!
*/
$table_prefix = 'wp_';
/**
* Lingua di Localizzazione di WordPress, di base Inglese.
*
* Modificare questa voce per localizzare WordPress. Occorre che nella cartella
* wp-content/languages sia installato un file MO corrispondente alla lingua
* selezionata. Ad esempio, installare de_DE.mo in to wp-content/languages ed
* impostare WPLANG a 'de_DE' per abilitare il supporto alla lingua tedesca.
*
* Tale valore è già impostato per la lingua italiana
*/
define('WPLANG', 'it_IT');
/**
* Per gli sviluppatori: modalità di debug di WordPress.
*
* Modificare questa voce a TRUE per abilitare la visualizzazione degli avvisi
* durante lo sviluppo.
* E' fortemente raccomandato agli svilupaptori di temi e plugin di utilizare
* WP_DEBUG all'interno dei loro ambienti di sviluppo.
*/
define('WP_DEBUG', false);
/* Finito, interrompere le modifiche! Buon blogging. */
/** Path assoluto alla directory di WordPress. */
if ( !defined('ABSPATH') )
define('ABSPATH', dirname(__FILE__) . '/');
/** Imposta lle variabili di WordPress ed include i file. */
require_once(ABSPATH . 'wp-settings.php');
When mysqld and mysql see localhost, they substitute the filesystem socket for the network socket. Using 127.0.0.1 connects to the network port - but similarly the permissions need to relect this if you're going to use the network connection (i.e. an entry for 'localhost' will not be used for validating network socket connections). Converseley, if you want to use the filesystem socket, then both ends need to be using the same path to the socket, and the connection is validated against 'localhost'.
since I user the command ./mysql -u root to open up the MySQL client in terminal, no password
OK, so in the absence of a -h it's using the filesystem socket - show variables like '%socket%' Make sure your php.ini has the same path set.
I installed MAMP, it gave me as host localhost, as user root and as pass root
But your password is blank.
Related
im following a tutorial of flutter about using json and serialization.
Im trying to execute a command in the terminal in a flutter proyect in vscode,
this is the class
import 'package:json_annotation/json_annotation.dart';
part 'mensaje.g.dart';
#JsonSerializable()
class Mensaje{
final String subject;
final String body;
Mensaje(this.subject,this.body);
Mensaje.fromJson(Map<String, dynamic> json):
subject=json['subject'],
body=json['body'];
}
I first add the dependecies in pubspec.yaml:
dev_dependencies:
build_runner:
json_serializable:
then i try to execute in the terminal in vscode this line:
flutter packages pub run build_runner build
and the error:
(flutter its not recognize as a cmdlet name or function... )
flutter : El término 'flutter' no se reconoce como nombre de un cmdlet, función,
archivo de script o programa ejecutable. Compruebe si escribió correctamente el
nombre o, si incluyó una ruta de acceso, compruebe que dicha ruta es correcta e
inténtelo de nuevo.
En línea: 1 Carácter: 1
+ flutter packages pub run build_runner build
+ ~~~~~~~
+ CategoryInfo : ObjectNotFound: (flutter:String) [], CommandNotFoundEx
ception
+ FullyQualifiedErrorId : CommandNotFoundException
It seems that you need to add your Flutter SDK path to the environment variable (e.g. C:\src\flutter) for windows. Also you can follow the Flutter documentation for proper installation on different OS:
Windows
macOS
linux
Chrome OS
If this is not the case, you can try to restart your VSCode application.
I have the following stack:
.NET 4.5.1
IIS 7.5
MSSQL SERVER 2008 EXPRESS SP 4
VISUAL STUDIO 2013 UPDATE 5
Windows 2007 SP1
SENSENET 6.5.2.8421
I tried to install SENSENET importing the package using the deploy option within IIS, but when creating the data base this shows up:
Microsoft.Web.Deployment.DeploymentDetailedClientServerException: Error durante la ejecución del script de la base de datos. El error ocurrió entre las siguientes líneas del script: "1061" y "1201". El registro detallado podría tener más información acerca del error. El comando comenzaba con lo siguiente:
"IF NOT EXISTS (SELECT * FROM sys.views WHERE objec"
Sintaxis incorrecta cerca de '!'. http://go.microsoft.com/fwlink/?LinkId=178587 Obtenga más información en: http://go.microsoft.com/fwlink/?LinkId=221672#ERROR_SQL_EXECUTION_FAILURE. ---> System.Data.SqlClient.SqlException: Sintaxis incorrecta cerca de '!'.
en System.Data.SqlClient.SqlConnection.OnError(SqlException exception, Boolean breakConnection)
en System.Data.SqlClient.SqlInternalConnection.OnError(SqlException exception, Boolean breakConnection)
en System.Data.SqlClient.TdsParser.ThrowExceptionAndWarning(TdsParserStateObject stateObj)
en System.Data.SqlClient.TdsParser.Run(RunBehavior runBehavior, SqlCommand cmdHandler, SqlDataReader dataStream, BulkCopySimpleResultSet bulkCopyHandler, TdsParserStateObject stateObj)
en System.Data.SqlClient.SqlCommand.RunExecuteNonQueryTds(String methodName, Boolean async)
en System.Data.SqlClient.SqlCommand.InternalExecuteNonQuery(DbAsyncResult result, String methodName, Boolean sendToPipe)
en System.Data.SqlClient.SqlCommand.ExecuteNonQuery()
en Microsoft.Web.Deployment.DBStatementInfo.Execute(DbConnection connection, DbTransaction transaction, DeploymentBaseContext baseContext, Int32 timeout)
--- Fin del seguimiento de la pila de la excepción interna ---
en Microsoft.Web.Deployment.DBStatementInfo.Execute(DbConnection connection, DbTransaction transaction, DeploymentBaseContext baseContext, Int32 timeout)
en Microsoft.Web.Deployment.DBConnectionWrapper.ExecuteSql(DBStatementInfo sqlStatement, DeploymentBaseContext baseContext, Int32 timeout)
en Microsoft.Web.Deployment.SqlScriptToDBProvider.AddHelper(DeploymentObject source, Boolean whatIf)
en Microsoft.Web.Deployment.SqlScriptToDBProvider.Add(DeploymentObject source, Boolean whatIf)
en Microsoft.Web.Deployment.DeploymentObject.AddChild(DeploymentObject source, Int32 position, DeploymentSyncContext syncContext)
en Microsoft.Web.Deployment.DeploymentSyncContext.HandleAddChild(DeploymentObject destParent, DeploymentObject sourceObject, Int32 position)
en Microsoft.Web.Deployment.DeploymentSyncContext.SyncChildrenOrder(DeploymentObject dest, DeploymentObject source)
en Microsoft.Web.Deployment.DeploymentSyncContext.SyncChildren(DeploymentObject dest, DeploymentObject source)
en Microsoft.Web.Deployment.DeploymentSyncContext.SyncChildrenOrder(DeploymentObject dest, DeploymentObject source)
en Microsoft.Web.Deployment.DeploymentSyncContext.SyncChildren(DeploymentObject dest, DeploymentObject source)
en Microsoft.Web.Deployment.DeploymentSyncContext.ProcessSync(DeploymentObject destinationObject, DeploymentObject sourceObject)
en Microsoft.Web.Deployment.DeploymentObject.SyncToInternal(DeploymentObject destObject, DeploymentSyncOptions syncOptions, PayloadTable payloadTable, ContentRootTable contentRootTable, Nullable`1 syncPassId, String syncSessionId)
en Microsoft.Web.Deployment.DeploymentObject.SyncTo(DeploymentProviderOptions providerOptions, DeploymentBaseOptions baseOptions, DeploymentSyncOptions syncOptions)
en Microsoft.Web.Deployment.DeploymentObject.SyncTo(String provider, String path, DeploymentBaseOptions baseOptions, DeploymentSyncOptions syncOptions)
en Microsoft.Web.Deployment.DeploymentObject.SyncTo(DeploymentWellKnownProvider provider, String path, DeploymentBaseOptions baseOptions, DeploymentSyncOptions syncOptions)
en Microsoft.Web.Deployment.UI.InstallProgressWizardPage.OnWorkerDoWork(Object sender, DoWorkEventArgs e)
en System.ComponentModel.BackgroundWorker.OnDoWork(DoWorkEventArgs e)
en System.ComponentModel.BackgroundWorker.WorkerThreadStart(Object argument)
Oviously, the installation fails.
The cause is most likely a SQL method (IIF) that is not available in your version of SQL Server. You can either try to install SenseNet on a newer server or download a newer SensNet package, because in the next version (6.5.3+) the script above was converted to be compatible with older SQL servers.
My web application works ok from my local Glassfish server (localhost:8080/App) in every browser, and also in Chrome and Firefox from the remote production server (remoteserver:8080/App).
But, when I try to access the application on the remote server using IE11, the console shows these errors:
Archivo: Personalator-1.0-SNAPSHOT
SCRIPT1028: Se esperaba un identificador, una cadena o un número
Archivo: primefaces.js, Línea: 17, Columna: 13994
SCRIPT5009: 'PrimeFaces' no está definido
Archivo: pfCalendarEs.js, Línea: 1, Columna: 1
SCRIPT5009: 'PrimeFaces' no está definido
Archivo: Personalator-1.0-SNAPSHOT, Línea: 27, Columna: 9706
SCRIPT5009: 'PrimeFaces' no está definido
Archivo: Personalator-1.0-SNAPSHOT, Línea: 51, Columna: 6727
SCRIPT5009: 'PrimeFaces' no está definido
Archivo: Personalator-1.0-SNAPSHOT, Línea: 51, Columna: 7264
SCRIPT5009: 'PrimeFaces' no está definido
Archivo: Personalator-1.0-SNAPSHOT, Línea: 38, Columna: 201
The first error translates as "Identifier expected, string or number". The rest translate as "PrimeFaces is undefined".
Everything works fine if I try to access using the IE11 installed in the remote server, so it looks like the problem is the remote URL.
I work with sql server 2008
When I click the report builder button in report manager.a box shows up "Cannot extract application .Authentification error"
Error details
* [23/04/2012 09:27:59] System.Deployment.Application.DeploymentDownloadException (sous-type inconnu)
- Échec du téléchargement de http://admin-pc/ReportServer/ReportB...er.application.
- Source*: System.Deployment
- Trace de la pile*:
à System.Deployment.Application.SystemNetDownloader.DownloadSingleFile(DownloadQueueItem next)
à System.Deployment.Application.SystemNetDownloader.DownloadAllFiles()
à System.Deployment.Application.FileDownloader.Download(SubscriptionState subState)
à System.Deployment.Application.DownloadManager.DownloadManifestAsRawFile(Uri& sourceUri, String targetPath, IDownloadNotification notification, DownloadOptions options, ServerInformation& serverInformation)
à System.Deployment.Application.DownloadManager.DownloadDeploymentManifestDirectBypass(SubscriptionStore subStore, Uri& sourceUri, TempFile& tempFile, SubscriptionState& subState, IDownloadNotification notification, DownloadOptions options, ServerInformation& serverInformation)
à System.Deployment.Application.DownloadManager.DownloadDeploymentManifestBypass(SubscriptionStore subStore, Uri& sourceUri, TempFile& tempFile, SubscriptionState& subState, IDownloadNotification notification, DownloadOptions options)
à System.Deployment.Application.ApplicationActivator.PerformDeploymentActivation(Uri activationUri, Boolean isShortcut, String textualSubId, String deploymentProviderUrlFromExtension, BrowserSettings browserSettings, String& errorPageUrl)
à System.Deployment.Application.ApplicationActivator.ActivateDeploymentWorker(Object state)
--- Exception interne ---
System.Net.WebException
- Le serveur distant a retourné une erreur*: (401) Non autorisé.
- Source*: System
- Trace de la pile*:
à System.Net.HttpWebRequest.GetResponse()
à System.Deployment.Application.SystemNetDownloader.DownloadSingleFile(DownloadQueueItem next)
When I ran the application from the its directory
C:\Program Files\Microsoft SQL Server\MSRS10.MSSQL2008\Reporting Services\ReportServer\ReportBuilder
It works fine but cannot connect to report server
the call is made from the user configured to run SSRS. Does it have permission to do it? If the SSRS server is on you local computer, try setting your user to run it and then test again
I'm importing some entries into a MYSQL table and it breaks on one of the INSERT statements with the following error:
ERROR 1064 (42000): You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'reqSent', 'Your 1-on-1 Request has been sent', '&
(3996, 'reqSent', 'Your 1-on-1' at line 250
The SQL statements I'm importing have not been modified from when they were exported from phpMyAdmin and the relevant line is as follows:
(3996, 'reqSent', 'Your 1-on-1 Request has been sent', 'Seu 1-em-um pedido foi enviado. O instrutor irá rever o seu pedido e pode aceitar, recusar ou sugerir detalhes sessão diferente. Se o instrutor aceitar o seu pedido, será enviada uma factura (a menos que ele é livre consulta). Por favor pagar a factura de imediato. A sessão não será agendada até que você paga', 31, '1', '2010-06-24 19:28:35'),
I'm not able to see what the error is here - can someone assist?
i suggest to using mysqldump instead phpmyadmin dump .